React · Senior · Question 54 of 75

What does useDeferredValue(query, "") with an initial value change (React 19)?

Explanation

Without initialValue, the first render uses the real value immediately. The initial value is useful when the deferred render is expensive, e.g. a filtered list.

Further reading

Problem with a question

React · Senior · question 54

Test yourself

Take the React · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz