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 trying to port code such as this.store = alt.createStore(NoteStore, storeName, this.actions); to use makeHot. Sadly it looks like makeHot doesn't allow parameters to be passed to Store. I expect that for this to work you would need to do something like:
Maybe this was just a simple oversight? I can provide a PR if you want but given it's so trivial change, perhaps just add it there yourself it this makes sense to you.
The text was updated successfully, but these errors were encountered:
As discussed at gitter likely the most sensible solution is to actually integrate this to createStore and then check disable the check when compiling with NODE_ENV is set to production. That way it stays simple from user point of view and the utility can be dropped eventually.
I was trying to port code such as
this.store = alt.createStore(NoteStore, storeName, this.actions);
to usemakeHot
. Sadly it looks likemakeHot
doesn't allow parameters to be passed to Store. I expect that for this to work you would need to do something like:Maybe this was just a simple oversight? I can provide a PR if you want but given it's so trivial change, perhaps just add it there yourself it this makes sense to you.
The text was updated successfully, but these errors were encountered: