When I use revalidate, re-render occurs
Answered
Scaly-naped Pigeon posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
Scaly-naped PigeonOP
I use revalidateTag server action in Client Component.
When I use
Is it a bug? Why occur re-render?
When I use
revalidateTag
, re-render occurs. Is it a bug? Why occur re-render?
Answered by B33fb0n3
well, the rerender occurs, because the data cache is invalide. The server tries to get new data (from the invalidated data fetching methods) and send them to the client. The client modify the dom and because of the modify there is a rerender. No bug 🙂
@Scaly-naped Pigeon
@Scaly-naped Pigeon
3 Replies
![Avatar](https://cdn.discordapp.com/avatars/301376057326567425/788b75eb8862277af3d31d317ada783f.webp?size=256)
B33fb0n3
well, the rerender occurs, because the data cache is invalide. The server tries to get new data (from the invalidated data fetching methods) and send them to the client. The client modify the dom and because of the modify there is a rerender. No bug 🙂
@Scaly-naped Pigeon
@Scaly-naped Pigeon
Answer
![Avatar](https://cdn.discordapp.com/avatars/301376057326567425/788b75eb8862277af3d31d317ada783f.webp?size=256)
B33fb0n3
@Scaly-naped Pigeon solved?
![Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
Scaly-naped PigeonOP
Yes! I understand