yoshuawuyts / barracks

:mountain_railway: action dispatcher for unidirectional data flows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

noSubscriptions: true -> subscriptions: false ?

timwis opened this issue · comments

I feel like I read somewhere that having negative params like the former is less readable/obvious than the latter (no + true = false). Just a suggestion as you're finalizing the API. Don't mean to cause more trouble!

commented

hmmm, no I think you're right, doing store.start({ subscriptions: false }) seems like a better API haha - I'm quite sure I had a reason for it but I'm tired right now so I'll revisit tomorrow - def thanks for raising it tho! ✨