#no it shall also be server component

1 messages · Page 1 of 1 (latest)

past sun
#

.

lone walrus
#

to show hide them and set the message according to api error response

past sun
#

you using npm react-hot-toast?

lone walrus
#

no simple component i made to floating toast message

#

according to error response of api

past sun
#

the server don't know any state. Only if you add like query params or dynamic routes. Both isn't that useful for your case. You can create the toast as component, throw the error from your server component and load the toast in your error component. You get the error inside the error component

lone walrus
#

that is sad

#

but thanks for the help though