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 was thinking of creating an invoke method that may satisfy your needs:
invoke(state, 'data.push', action.payload)
Although that would not me an immutable helper. We may be able to create an immutable invoke as well. I've been wanting to reorganize 101 into pairs of helper (immutable and not).
invoke sounds cool. I'm not sure how to name it, but I presume that people won't use both immutable and mutable invoke at the same time, so maybe we could do:
Maybe we could have an immutable push (and unshift?) method.
Before
After
I've been using
101
recently in my newer projects, and I've been meaning to have something like this.Not sure if it's "bloat", but let me know what you think. I can send a PR if you think this sounds good.
The text was updated successfully, but these errors were encountered: