What is the purpose of useScriptRef

Closed
G General October 29, 2021
Login to reply
Coded Themes Support Agent
2 years ago

Hi,

Thanks for reaching out.


useScriptRef is a wrapper for the useRef react hook which is useful to get mutable values at a given point. 

It is used in authentication to get value when response back from third-party authentication.


Feel free to reach out if any further questions.

Kind Regards,

Rakesh

Note: Do not forget to close the ticket if the query is resolved.

Ivan Roubíček
2 years ago

I cannot see anywhere in documentation what it is used for and when I check JWTLogin where it is used i don't get it. Thank you for explanation.

Additional Info

Order#: 31417

Name of Product/template: berry