-
Notifications
You must be signed in to change notification settings - Fork 39
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
Don't complain about "initAsync called twice" when hot reloading #114
Comments
seconding this. pretty harmless, but it makes it hard to read other logs that I actually want to read :( @statico are you still patching the package on your end or have you found any other workarounds? |
@hikchoi Yep, still patching this and a few other messages. Previously with |
Maybe the solution here is to patch the Router and not call We already do that here but if the whole Provider gets recreated, this field is also gone, the solution would be to depend on an external global variable. |
I was getting this error and solved it by putting PH provider at the very top of the
|
Is your feature request related to a problem?
Similar to #113 — every time my React Native app is loaded, reloaded, or the base layout changes (we're using expo-router), PostHog throws up a giant warning:
It would be nice to disable this message when
__DEV__
is true.Recoil, a state management library for React, had a similar behavior with singletons and hot reloading and solved this by allowing developers to add a
RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=false
setting: facebookexperimental/Recoil#733Describe the solution you'd like
Some kind of setting, maybe in PostHogProvider, like
dangerouslyIgnoreReinitialization
oriKnowWhatImDoing={__DEV__}
or something, that removes this warning.Describe alternatives you've considered
patch-package
Related sub-libraries
Additional context
<3
The text was updated successfully, but these errors were encountered: