-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to properly include ResizeObserver polyfill #934
Comments
@vladp The polyfill need to be imported before you ever import from |
Yes, import polyfills first in your boot file |
perfect. it worked. thank you. |
It seems the global polyfill is deprecated and will be removed, are there migration plans for when that happens? Edit: Ah nevermind, I guess that's been that way for a long time now, so probably not a very pressing issue. |
I've tried importing the polyfill in App.js and index.js and still getting the warning :( @necolas? |
@valentinewallace
|
Hi @jacobmischka
|
This is a documentation enhancement request
Getting
onLayout relies on ResizeObserver which is not supported by your browser. Please include a polyfill, e.g., https://github.com/que-etc/resize-observer-polyfill. Falling back to window.onresize
warning in Firefox and Edge browsers.
The documentation clearly states to include a polyfill for ResizeObserver function.
However, I could not find any hints on how to include the polyfill.
Simply doing
npm install resize-observer-polyfill --save
and then,
Does not eliminate the warning message on Firefox or Edge.
I do not have any of my own code that relies on onLayout properties.
The text was updated successfully, but these errors were encountered: