Skip to content

useEffect trigger twice when slice Pattern,I don't want the first trigger #2837

Closed Answered by dbritto-dev
felix9ia asked this question in Q&A
Discussion options

You must be logged in to vote

@felix9ia that's how works React, useEffect is a way to sync your data with something else. BTW, you can use subscribe() trigger something when something else change

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by felix9ia
Comment options

You must be logged in to vote
4 replies
@dbritto-dev
Comment options

@dbritto-dev
Comment options

@felix9ia
Comment options

@dbritto-dev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants