How do you update some state with a redux get function? Values not updating correctly on set
- 阅读更多 关于 How do you update some state with a redux get function? Values not updating correctly on set
问题 I currently am fetching some balances via a redux getBalances method. When the app initializes it sets 'balances' to the JSON of information, however when I call getBalances again it doesn't re-set the balances (no idea why). So right now, I'm manually trying to update the balances by calling the getBalances method then setting the result of that to balances, however I'm running into walls. All I'd like to do is getBalances again and merely set this to balances, however I'm not sure how I'd