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
@petervijeh As I understand it, it's meant to be passed down as a prop by parent components as necessary.
import MyAsyncComponent from 'components/MyAsyncComponent';
const onScriptLoaded = () => {
// Run code that is dependant on the script being loaded.
let script = window.loadedScript;
script.run('foo', bar);
};
return () => <MyAsyncComponent onScriptLoaded={onScriptLoaded} />
Not clear how this method is used, are there any examples anywhere?
The text was updated successfully, but these errors were encountered: