Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Feature request: Add caching support for multiple environments #233

@rygine

Description

@rygine

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions