-
Notifications
You must be signed in to change notification settings - Fork 935
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
New iOS tab is created every time I relaunch the app. #1387
Labels
bug 🪲
Nope, this is wrong.
Comments
This is a confirmed bug, and we have some ideas how we'll fix this. cc @joshuayoes |
For now, this can be fixed by calling import Reactotron from "reactotron-react-native";
import { AsyncStorage } from "@react-native-async-storage/async-storage";
Reactotron
.configure()
.useReactNative()
.setAsyncStorageHandler(AsyncStorage) // allows Reactotron to store an ID in async storage to prevent this from happening
.connect(); |
If you are using another storage package like import { MMKV } from 'react-native-mmkv'
import Reactotron from 'reactotron-react-native'
const REACTOTRON_ASYNC_CLIENT_ID = "@REACTOTRON/clientId"
const storage = new MMKV({ id: REACTOTRON_ASYNC_CLIENT_ID })
const getClientId = async () => storage.getString(REACTOTRON_ASYNC_CLIENT_ID)!
const setClientId = async (clientId: string) => {
storage.set(REACTOTRON_ASYNC_CLIENT_ID, clientId)
}
Reactotron.configure({
getClientId,
setClientId,
})
.useReactNative()
.connect() |
New tab issue fixed as per @joshuayoes soln:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: