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 want to implement a refetch function manually when user clicked the button.
currently whenever I got an error from API, i'm showing a toast when the error appear, now i want to add "Retry" button next to a toast message, the problem is toast component always show because of <Show when={data.error}>
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
-
I want to implement a
refetch
function manually when user clicked the button.currently whenever I got an error from API, i'm showing a toast when the error appear, now i want to add "Retry" button next to a toast message, the problem is toast component always show because of
<Show when={data.error}>
current reproduction https://playground.solidjs.com/anonymous/ecd6ac2a-1486-491b-b43b-e52519e559ec
Question: how do i reset the
.error
value to null manually? because i don't want to show Toast forever untilrefetch
resolve.Beta Was this translation helpful? Give feedback.
All reactions