-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
How to track names uniqueness? #556
Comments
We don't need that. Eslint with domain handling should be enoght. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One of the main priority of Reatom is the best debug experience. A state management hard as itself and it is important to think about this as a default feature, which should be integrated in all other features.
One of the important and difficult by default feature of debuggability is a state identification. We should provide reach (sound) names for all atoms and actions, but how to grant their uniqueness?
We need a tool to validate atoms and actions names uniqueness. It easy to implement - just parse logs (
ctx.subscribe(logs => ...)
) and throw an error, if some name (log.proto.name
) is doubled. A couple important notes:Map<string, AtomProto>
(string
is a name) ANDFinalizationRegistry
#${id}
pattern - this kind of atoms could be doubled 🤔The text was updated successfully, but these errors were encountered: