diff --git a/boilerplate/app/devtools/ReactotronClient.web.ts b/boilerplate/app/devtools/ReactotronClient.web.ts index 5b56dfed1..e7fbed462 100644 --- a/boilerplate/app/devtools/ReactotronClient.web.ts +++ b/boilerplate/app/devtools/ReactotronClient.web.ts @@ -3,6 +3,9 @@ * of Reactotron's client. * * React Native is loaded from ReactotronClient.ts. + * + * If your project does not need web support, you can delete this file and + * remove reactotron-react-js from your package.json dependencies. */ import Reactotron from "reactotron-react-js" export { Reactotron } diff --git a/boilerplate/app/models/helpers/useStores.ts b/boilerplate/app/models/helpers/useStores.ts index 68b0cc761..ede2860e8 100644 --- a/boilerplate/app/models/helpers/useStores.ts +++ b/boilerplate/app/models/helpers/useStores.ts @@ -47,7 +47,7 @@ export const useStores = () => useContext(RootStoreContext) * and then rehydrates it. It connects everything with Reactotron * and then lets the app know that everything is ready to go. */ -export const useInitialRootStore = (callback: () => void | Promise) => { +export const useInitialRootStore = (callback?: () => void | Promise) => { const rootStore = useStores() const [rehydrated, setRehydrated] = useState(false) diff --git a/boilerplate/package.json b/boilerplate/package.json index 1a3c41294..cccc24d21 100644 --- a/boilerplate/package.json +++ b/boilerplate/package.json @@ -88,17 +88,17 @@ "eslint-plugin-promise": "6.0.0", "eslint-plugin-react": "7.30.0", "eslint-plugin-react-native": "4.0.0", - "eslint-plugin-reactotron": "^0.1.1", + "eslint-plugin-reactotron": "^0.1.2", "jest": "^29.2.1", "jest-expo": "49.0.0", "patch-package": "6.4.7", "postinstall-prepare": "1.0.1", "prettier": "2.8.8", "react-test-renderer": "18.2.0", - "reactotron-core-client": "2.8.11", - "reactotron-mst": "3.1.5", - "reactotron-react-js": "3.3.9", - "reactotron-react-native": "5.0.4", + "reactotron-core-client": "^2.8.13", + "reactotron-mst": "^3.1.7", + "reactotron-react-js": "^3.3.11", + "reactotron-react-native": "^5.0.5", "ts-jest": "^29.1.1", "ts-node": "^10.9.2", "typescript": "5.3.2" diff --git a/package.json b/package.json index 335cc3762..34df4012d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ignite-cli", - "version": "9.4.1", + "version": "9.4.2", "description": "Infinite Red's hottest boilerplate for React Native.", "bin": { "ignite": "bin/ignite",