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 not super familiar with all things react but I heard react-p5-wrapper uses componentWillReceiveProps(). Since React 16.3 it has been replaced by UNSAFE_componentWillReceiveProps()? This lifecycle method is deprecated and will be removed from the next major release of React?
@vennsoh ohhh I didn't think of that, Thx!
I just build a Version 2.0.0 where it uses the getDerivedStateFromProps(props, state)-Function instead. (npm Repo)
I didn't tested it very well. But from the first glance it should work.
Thanks @and-who, how to use this? The same like in the mentioned processing reference? <P5Wrapper sketch={sketch} foo="bar" /> does not work for me. i need to access foo within my sketch module. :/
Are there any future plans to refactor the code to use hooks and all the latest React goodness? I found one here which looks very promising but it's way to complex for a novice like me. https://discourse.processing.org/t/using-react-with-p5-js-es6-support/
The text was updated successfully, but these errors were encountered: