TypeError undefined is not a function (when reloading root node)
react-native-mmkv 4.1.2
React-Native 0.81.5
Expo 54 & expo-updates 29 (e.g. it happens when using [`reloadAsync()`](https://docs.expo.dev/versions/latest/sdk/updates/#updatesreloadasyncoptions))
<img width="958" height="466" alt="Image" src="https://github.com/user-attachments/assets/c77308fe-13aa-42ab-868a-80401d33e21c" />
```
TypeError: undefined is not a function
at anonymous (/node_modules/.pnpm/react-native-mmkv@4.1.2_react-native-nitro-modules@0.33.2_react-native@0.81.5_@babel+co_96548ba49aacebaab7af3d4617170398/node_modules/react-native-mmkv/src/hooks/createMMKVHook.ts:61:35)
at commitHookEffectListUnmount (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:7583:23)
at commitPassiveUnmountEffectsInsideOfDeletedTree_begin (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8768:36)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8683:61)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8700:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8720:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8700:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8720:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8700:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8720:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8700:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8720:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8700:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8720:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8700:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8720:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8720:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8700:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8720:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8700:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8720:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8700:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8720:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8700:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8700:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8720:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
at commitPassiveUnmountOnFiber (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8720:47)
at recursivelyTraversePassiveUnmountEffects (/node_modules/.pnpm/react-native@0.81.5_@babel+core@7.29.0_@react-native-community+cli@20.0.2_typescript@5._a186e63d21c5efb8c75b3ee4537331a4/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8692:34)
```
2 条评论