Skip to content

Conversation

@ammarahm-ed
Copy link
Owner

This pull request updates the interface and mock implementation for removing multiple values from the MMKV memory store. The main changes clarify the function signature for batch removal and ensure the mock reflects the new interface.

API consistency and type safety:

  • Changed the signature of removeValuesMMKV in MMKVJsiModule to accept an array of keys and an id, instead of a variable argument list, improving clarity and type safety (src/types/index.ts).

Mock implementation update:

  • Updated the mock implementation in jest/memoryStore.ts to match the new removeValuesMMKV signature, iterating over the provided array of keys and removing each from the memory store.

Closes #375

@vercel
Copy link

vercel bot commented Sep 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
rnmmkv Ready Ready Preview Comment Sep 24, 2025 5:37pm

@ammarahm-ed ammarahm-ed merged commit 376127a into master Sep 24, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] removeItems function not working

2 participants