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
I see there are some options like onSuccess, onError which allow us to do something that has side-effects, but no one likeonLoad when the fetching is started.
It might be useful if we want to reset something e.g. selected value of a dropdown, before we fetching new options.
@pig800509 If I understand correctly, your solution looks like doing something after loading (there is already an onSucess for this). I want to do something before loading started.
I see there are some options like
onSuccess
,onError
which allow us to do something that has side-effects, but no one likeonLoad
when the fetching is started.It might be useful if we want to reset something e.g. selected value of a dropdown, before we fetching new options.
I tried several solutions:
useEffect
:But neither looks as great as we can just:
The text was updated successfully, but these errors were encountered: