Skip to content

Get rid of global map of atoms/selectors #4

Description

@thepassle

It would be nice not to depend on a 'global' map of atoms/selectors.

I think this should be easily refactorable. Instead of having atoms return a {key: 'someAtom'}, we can just return the Atom instance. When initializing Selectors, we need to pass the Atom to the Selector anyway, so we can rely on that directly.

This might be a problem for the devtools though, since the global Map is required for getting the initial states of atoms/selectors, but we might be able to work around that.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions