You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have access to the ref to be able to use it for whatever reason I might need.
Problem Statement/Justification
With html-to-image you declare the ref and use that to give the toXXX method the node you want to create the image from. Which means you can use the ref in the options for example for the size (ex: bubkoo/html-to-image#43)
With the hooks, the ref is created inside the hook which means we don't get access to it
Proposed Solution or API
An idea might be to instead of accepting options as a param, accept a function that returns the option object.
Description
I would like to have access to the ref to be able to use it for whatever reason I might need.
Problem Statement/Justification
With html-to-image you declare the ref and use that to give the
toXXX
method the node you want to create the image from. Which means you can use theref
in the options for example for the size (ex: bubkoo/html-to-image#43)With the hooks, the ref is created inside the hook which means we don't get access to it
Proposed Solution or API
An idea might be to instead of accepting options as a param, accept a function that returns the option object.
Another option is that the ref is sent as a param instead of created in the hook.
Alternatives
No response
Additional Information
Thank you for the utilities!
The text was updated successfully, but these errors were encountered: