0

I know that useTransition hook was created using a function called flushSync in react 18 version.

Can't I use this as a custom hook in react 17 version?

Due to my lack of knowledge, I haven't tried it.

  • Please provide enough code so others can better understand or reproduce the problem. – Community Mar 09 '23 at 12:14
  • The short answer is no. I was looking for a solution too. But, the flushSync method is introduced in React 18 – Dejan May 29 '23 at 14:46

0 Answers0