Blog
1 week ago
How Multiple Valtio Instances Broke My React Native App
While debugging a crash in @reown/appkit-react-native, the author uncovered that valtio proxies were breaking due to multiple library instances created by pnpm’s node-linker=hoisted setting. This caused each package to maintain separate WeakMap states, breaking shared behavior. The fix? Forcing all dependencies to use the same Valtio version via pnpm.overrides. The article also shares key debugging lessons: always check git history, clear caches when editing node_modules, and ensure consistent versions across your workspace to prevent multi-instance library conflicts.
Source: HackerNoon →