Closed TheRealNate closed 3 years ago
I would think that changing this to a componentDidMount()
would work. I have not noticed any side-effects locally with this updated.
After doing some more reading on docs, its possible that moving the code into the constructor method may mimic the behavior of componentWillMount
better.
I thought about that too, but found no loss of performance or issues yet - although my case is very limited in use so far 🤞 . I am all for better solutions, but struggling to find good ways to test these in a meaningful way.
How are you going about testing? I spent a little time spooling up mocha that was from the react-native-meteor
repo, but decided that was a bigger project...
PR #10 has been merged in beta release 2.1.0-beta1
Closing this issue due to no activity. Feel free to reopen.
This has been fixed in 2.1.0
componentWillMount
has been deprecated and will be removed in React 17./src/components/ReactMeteorData.js#L8