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
Describe the bug
At runtime, I receive the error message
Deprecated Option
The onInit() function is deprecated and has been replaced with onReady(). It will be removed in a future version of iFrame Resizer.
but the type IframeResizerProps has onInit and no onReady
To Reproduce
Using @iframe-resizer/react@5.1.5, render an <IframeResizer> with an onInit in the props.
Check dev console for warning logs
Expected behavior
I expect either: onReady to be an available option in the props
OR onInit to not throw a deprecation warning
Screenshots
Desktop (please complete the following information):
OS: MacOS
Browser: Chrome
Version: 126.0.6478.127
Additional context
This might just be a discrepancy between the React version of the library and the underlying parent library. Thanks for the great library!
The text was updated successfully, but these errors were encountered:
Describe the bug
At runtime, I receive the error message
but the type
IframeResizerProps
hasonInit
and noonReady
To Reproduce
@iframe-resizer/react@5.1.5
, render an<IframeResizer>
with anonInit
in the props.Expected behavior
I expect either:
onReady
to be an available option in the propsOR
onInit
to not throw a deprecation warningScreenshots
Desktop (please complete the following information):
Additional context
This might just be a discrepancy between the React version of the library and the underlying parent library. Thanks for the great library!
The text was updated successfully, but these errors were encountered: