Skip to content

Conversation

wangcch
Copy link
Contributor

@wangcch wangcch commented Aug 8, 2024

Sets the state to initialState before executing the promise.

// `defaultState` defaults to undefined
const [state, req] = useResource(getUser, false, { defaultState: someValues, resetOnReq: true });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant