tasit-apps icon indicating copy to clipboard operation
tasit-apps copied to clipboard

Decide between redux-thunk, redux-saga, or neither for async data fetching

Open pcowgill opened this issue 5 years ago • 4 comments

pcowgill avatar Dec 07 '18 23:12 pcowgill

@pcowgill commented:

I think React context API is worth considering in the medium term.

Refs: https://github.com/tasitlabs/tasit/pull/93#issuecomment-462464898

marcelomorgado avatar Feb 11 '19 21:02 marcelomorgado

Seems that redux docs recommends keep actions as plain functions and use middleware (thunk/saga) to handle with fetching data. What do you think? Refs: https://github.com/tasitlabs/tasit/pull/93#discussion_r255698391

marcelomorgado avatar Feb 12 '19 17:02 marcelomorgado

TODO Move functions that interact with blockchain to actions / middlewares.

marcelomorgado avatar Feb 12 '19 17:02 marcelomorgado

Depending on what we decide in issue https://github.com/tasitlabs/tasit/issues/197 , this one might become obsolete

pcowgill avatar Apr 19 '19 14:04 pcowgill