reactjs - Do I need a saga for local store changes ? (redux-saga) -
it may naive/not smart question:
i want keep track of global state in app. user example choose options app , want options accessible component in app. trigger "setoptions" action , have reducer it. action dosn't need server call it's internal app.
my question is, needs have it's own saga ? in opinion it's not needed here maybe it's practice way better keep tracks of thing ?
what think better option ?
thanks
that's not use case redux-sagas. redux-saga async operations. if intent keep property global, redux store has covered in ramifications of it.
you have reducer setup. once dispatch action in case store updated new state reducer. think that's need since you're not making server call whatsoever.
Comments
Post a Comment