Skip to content

Conversation

@wjbeau
Copy link
Contributor

@wjbeau wjbeau commented Jan 23, 2026

Pull Request Template

Description

This PR implements the "Delete All Accounts and Logout" button functionality fully in the settings menu.

However, in order to make this less brittle, this PR also redesigns the Zustand store init/deinit functionality to be more automated. This allows us to not worry about forgetting to clear zustand data later if we add more modules etc. The way it works now is the DataStoreRegistry holds all the stores that have been registered. Registration happens automatically on import of a module. Then when registerPlatformServices() is called by the bootstrapper, it automatically initializes all the stores now.

Related Issues

Closes https://algorandfoundation.atlassian.net/browse/PERA-3426

Checklist

  • [X Have you tested your changes locally?
  • Have you reviewed the code for any potential issues?
  • Have you documented any necessary changes in the project's documentation?
  • Have you added any necessary tests for your changes?
  • Have you updated any relevant dependencies?

Additional Notes

@wjbeau wjbeau requested a review from fmsouza January 23, 2026 16:31
Base automatically changed from wjbeau/PERA-3425 to main January 23, 2026 16:53
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.

2 participants