Thoughts on providers in a static class for the sake of namespace? #814
Norbert515
started this conversation in
General
Replies: 1 comment
-
This isn't that uncommon While there isn't a "This is how you should triage your providers" guideline yet, grouping providers as The downside is, not all providers fit inside such namespace. So it makes the syntax for using providers a bit inconsistent. Sometimes we'll have But yeah, go for it :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sometimes there are a couple of providers that work together to achieve a function.
For example:
handles
TextFields
and whether to enable the register button. These are only meant to be used by one class.If I create a lot of such providers, my concern is that it might convolute the global namespace and make API discovery harder when the project grows.
I was thinking of putting these in a static class, purely for the sake of namespace.
I haven't seen this done yet, and I'd love to hear opinions.
Beta Was this translation helpful? Give feedback.
All reactions