Questions tagged [usetransition]
3 questions
2
votes
2 answers
Slow input even with useTransition()
I'm playing with the new useTransition() hook added in React 18.
I created an app highlighting the matching names. If it matches, the item gets green, otherwise red. Here how I did it:
import { useState, useTransition } from 'react';
import people…

Robo Robok
- 21,132
- 17
- 68
- 126
0
votes
0 answers
Nextjs13 revalidateTag Loading Modal while waiting for revalidation
Got a quick question for you. I'm working on a Next.js frontend app hooked up to a Flask backend. So, I'm triggering a server action when a button is clicked, using the startTransition() function. That action includes a revalidateTag once the data…

Vlada Stefanovic
- 27
- 2
0
votes
0 answers
Create useTransition custom hook using useReducer in react 17 version
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.

Fourier
- 1