You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often find myself bundling selectors especially for view selectors.
If I don't need to process the data in the selector this could look like the following:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Current Situation
I often find myself bundling selectors especially for view selectors.
If I don't need to process the data in the selector this could look like the following:
Adding and removing selectors would require me to modify 3 places in the code.
Proposal
I created a utility function to simplify this process
which would allow me to write this instead:
Do you have any suggestions for improvement?
What do you think? Would it be suitable to be included into the core library?
Beta Was this translation helpful? Give feedback.
All reactions