-
Notifications
You must be signed in to change notification settings - Fork 20
Description
Describe the bug
The latest version of react-native-mmkv (v4.0.0) is not working with @rozenite/mmkv-plugin (v1.0.0-alpha.14 and v1.0.0-alpha.16). The plugin appears to be incompatible with the breaking changes introduced in MMKV v4.0.0.
Specific behavior observed:
- The plugin detects entries from the default storage instance (shows "8 of 8 entries" in the UI)
- However, no data is displayed in the inspector, even though entries are detected
- The instance dropdown is empty and shows no options, preventing selection of any storage instance
- This behavior occurs regardless of configuration:
- When passing a single storage instance:
useMMKVDevTools({ storages: [storage] }) - When passing multiple storage instances: The dropdown remains empty
- When not passing any instance (using default): Same behavior
- When passing a single storage instance:
The storage instance itself works correctly (tested with Jotai's atomWithStorage and Reactotron's MMKV plugin), but the Rozenite plugin integration fails silently. No errors are shown in the console.
See Image for ref:
System Info
- **React Native:** 0.81.5
- **Expo:** 54.0.20
- **react-native-mmkv:** ^4.0.0
- **react-native-nitro-modules:** ^0.31.2 (required peer dependency for MMKV v4)
- **Platform:** iOS/Android
- **Architecture:** New Architecture enabledRozenite Version
1.0.0-alpha.16
Reproduction
No minimal repo - reproducible with MMKV v4.0.0 and @rozenite/mmkv-plugin v1.0.0-alpha.16 using default storage instance.
Steps to reproduce
-
Install
react-native-mmkv@^4.0.0 -
Install
@rozenite/mmkv-plugin@^1.0.0-alpha.14or@rozenite/mmkv-plugin@^1.0.0-alpha.16 -
Configure the plugin with MMKV storage instance:
useMMKVDevTools({ storages: [storage] });
-
Run the app open devtools
-
Navigate to the MMKV Inspector tab in devtools
-
Observed behavior:
- Plugin shows "8 of 8 entries" (or count of entries detected)
- Instance dropdown is empty with no options available
- No data is displayed in the inspector view
- "Welcome to MMKV Inspector" message remains visible
- Message says "Select an MMKV instance from the dropdown above" but dropdown has no options
-
Expected behavior:
- Instance dropdown should show available storage instances
- Data should be displayed when an instance is selected
- All entries should be visible and searchable