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
If you are reporting a bug or having an issue setting up React Hot Loader, please fill in below. For feature requests, feel free to remove this template entirely.
Description
What you are reporting: Bug.
Expected behavior
What you think should happen: Child component methods should be available for use via refs from the parent component this.childComponentRef.current.childMethod()
Actual behavior
What actually happens: this.childComponentRef.current.childMethod() throws error "childMethod is not a function", cas it is undefined.
hot creates a "boundary" around given component. Usually you don't need to pass any props via those boundaries (and usually you have to wrap only your top level component)
If you are reporting a bug or having an issue setting up React Hot Loader, please fill in below. For feature requests, feel free to remove this template entirely.
Description
What you are reporting: Bug.
Expected behavior
What you think should happen: Child component methods should be available for use via refs from the parent component
this.childComponentRef.current.childMethod()
Actual behavior
What actually happens:
this.childComponentRef.current.childMethod()
throws error "childMethod is not a function", cas it is undefined.If I replace this part
To this
Child methods would be available by the parent component via ref
Environment
React Hot Loader version: 4.8.5
Run these commands in the project folder and fill in their results:
node -v
: v12.13.0npm -v
: 6.12.0Then, specify:
Reproducible Demo
Sorry guys. It will take a bunch of time to create a new project with environment end stuff.
The text was updated successfully, but these errors were encountered: