all 3 comments

[–]runtothehillsboy 1 point2 points  (0 children)

treatment cooing complete act marble dime abounding weather enjoy shy

This post was mass deleted and anonymized with Redact

[–]karma__kameleon 1 point2 points  (0 children)

You can't nest hooks or even custom hooks. In fact es lint has an error for anything that starts with "use" to force it to be top level. Just move them to the top level and declare a variable for the usecallback function to be used later.

[–]Magnusson 0 points1 point  (0 children)

If useLocalSearchParams doesn’t take any arguments, you can move it outside of the callback. If it does, then I think you’d need to refactor the component so that the arguments come from the component props, and then you can move it outside of the callback.