Closed TomVanDerSpek closed 5 years ago
I think adding the Singleton
scope into the project by default would be a good idea. Originally it was excluded as scopes are user created (and we recommend calling the scope at the root component Singleton
), but you're right, that isn't very clear in the README.
I'll open a PR for this, but if you'd like to create one for now, simply put in your project struct Singleton : Cleanse.Scope {}
and you should be good to go.
According to the readme on GitHub I should be able to scope a Binder as:
Line 17 in Scope.swift also states the following:
/// Currently there are only two scopes,
Unscopedand
Singleton.
But it looks like Singleton is completely removed from the project. Can you update the documentation and let me know what I should use instead?