Skip to content
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

Better singletons #172

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Better singletons #172

wants to merge 5 commits into from

Conversation

inxilpro
Copy link
Contributor

Originally, we implemented AppliesToSingletonState as the way of marking a state as a singleton. This is an artifact of how states were originally defined in early versions of Verbs. A much more straightforward approach is to just have a SingletonState class. This allows us to avoid passing singleton: true all over the place, and is just more obvious and simple.

@inxilpro
Copy link
Contributor Author

Just reviewed with Daniel. This will be a breaking change so we have to plan the release, but generally it's good.

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

Successfully merging this pull request may close these issues.

2 participants