Relative Content

Tag Archive for javascripthtmlreactjsreact-hooksrenderscript

React rendering delay (useState, useEffect)

Really need advice on useState asynchrony
I have a filter in my project, everything is ready, it works, but with a stack delay of 1 step. I’ve read that it’s because of the asynchronous response and that it’s fixed with useEffect, I feel like I’m close to a solution, but I can’t get hold of it. I’ll describe it in more detail.