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
{{ message }}
Repository navigation
initialValue is always re-used for subsequent fetches if provided #249
providing initialValue to useAsync blocks subsequent requests. this is unexpected behavior when server side rendering, where initialValue is provided to hydrate the client, but subsequent requests should fetch new information
Expectation
when start() is called due to watch, watchFn, or reload(), initialValue is ignored and the fetch is re-run with the new arguments
the only two places where counter.current++ is called are in cancel() and start() (where it is never reachable). calling cancel() (while a request is not inflight) increments counter and allows subsequent requests to proceed as expected
changed the title [-]initialValue is always re-used for subsequent fetches, regardless of [/-][+]initialValue is always re-used for subsequent fetches if provided[/+]on Jan 23, 2020
Activity
[-]initialValue is always re-used for subsequent fetches, regardless of [/-][+]initialValue is always re-used for subsequent fetches if provided[/+]