Skip to content

Refactor chain connections to share the one interface #1239

Open
@alecdwm

Description

Most of the UI is using this recoil atom, refactoring it into a facade around the jotai apiPromiseAtom will cover most cases.

// TODO: Convert this into a facade for the `@/domains/common/atoms/apiPromiseAtom.ts` atom.
//
// That atom is superior to this one because:
// a) It uses jotai (our preferred state management tool) instead of recoil.
// b) It proxies websocket requests through to Talisman Wallet,
// so that users can maintain the one websocket connection per chain across both Talisman Wallet and Talisman Portal.
// For Talisman Wallet users, this means there will be zero websocket overhead when browsing Talisman Portal.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions