in React JS by
Q:

Can I dispatch an action in reducer?

1 Answer

0 votes
by

Dispatching an action within a reducer is an anti-pattern. Your reducer should be without side effects, simply digesting the action payload and returning a new state object. Adding listeners and dispatching actions within the reducer can lead to chained actions and other side effects.

Click here to read more about React JS
Click here to read more about Insurance

Related questions

0 votes
0 votes
asked Mar 2, 2020 in React JS by RShastri
0 votes
asked Jan 14, 2020 in QuickTest Professional (QTP) by GeorgeBell
0 votes
asked Jan 23, 2020 in Android by rahuljain1
0 votes
asked Nov 8, 2020 in Hadoop by rahuljain1
0 votes
asked Jan 7, 2020 in Big Data | Hadoop by sharadyadav1986
0 votes
...