Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add caching support for multiple environments #233

Open
rygine opened this issue May 8, 2024 · 0 comments
Open

Feature request: Add caching support for multiple environments #233

rygine opened this issue May 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@rygine
Copy link
Collaborator

rygine commented May 8, 2024

Is your feature request related to a problem?

When switching between the production, development, and local environments of XMTP, cached conversations can become out of sync, especially when conversations between the same wallets exist in more than one environment.

Describe the solution to the problem

The solution is to add another key to the caching DB that tracks which network is being used.

Describe the uses cases for the feature

When developing with the React SDK, it's common to switch between networks for testing purposes. This usually means developers have to clear the local DB in order to get conversations in sync. With this change, the conversation cache will always be in sync with whatever environment is being used.

Additional details

No response

@rygine rygine added the enhancement New feature or request label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant