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'm trying to get Font Face Observer to work which references document directly in its code. I assumed it would work if I called it in the UseEffect hook but it turns out that even those hooks are being executed on the parent page. Is there any way to run code in the context of the iframe? A similar hook to contentDidMount would allow some great features.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to get Font Face Observer to work which references
document
directly in its code. I assumed it would work if I called it in theUseEffect
hook but it turns out that even those hooks are being executed on the parent page. Is there any way to run code in the context of the iframe? A similar hook tocontentDidMount
would allow some great features.Beta Was this translation helpful? Give feedback.
All reactions