Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add failureToastOptions prop for usePromise, useCachedPromise, and useFetch #34

Merged
merged 3 commits into from
Jun 11, 2024

Conversation

thomaslombart
Copy link
Contributor

@thomaslombart thomaslombart commented Jun 6, 2024

Add a failureToastOptions prop to useFetch, useCachedPromise, and usePromise to make it possible to customize the error displayed instead of a generic "Failed to fetch latest data".

@thomaslombart thomaslombart self-assigned this Jun 6, 2024
src/usePromise.ts Outdated Show resolved Hide resolved
@thomaslombart thomaslombart changed the title Add errorTitle prop for usePromise, useCachedPromise, and useFetch Add failureToastOptions prop for usePromise, useCachedPromise, and useFetch Jun 7, 2024
@thomaslombart thomaslombart merged commit 5e65297 into main Jun 11, 2024
1 check passed
@thomaslombart thomaslombart deleted the toast-error-title branch June 11, 2024 07:23
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.

2 participants