You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone i'm developing a react-router + react-query project and i'm making a loader for my page. But i don't quite understand some thing.
I load the data into the cache through the loader, but in the return value I put null (return null) or empty string (return ""), which is better? Or can I remove the return directly ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone i'm developing a react-router + react-query project and i'm making a loader for my page. But i don't quite understand some thing.
I load the data into the cache through the loader, but in the return value I put null (return null) or empty string (return ""), which is better? Or can I remove the return directly ?
Beta Was this translation helpful? Give feedback.
All reactions