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 have a global request error logic in a ts/js file. If the return statusCode match some condition I want to show a Snackbar/Alert.
So the Snackbar/Alert will not delcared in any componet file,and I call Snackbar/Alert whenever and wherever I need.
for example, in a js file:
Snackbar.error('my message', duration, onClose);
I have a global request error logic in a ts/js file. If the return statusCode match some condition I want to show a Snackbar/Alert.
So the Snackbar/Alert will not delcared in any componet file,and I call Snackbar/Alert whenever and wherever I need.
for example, in a js file:
Snackbar.error('my message', duration, onClose);
You can reference the Ant Design notification
The text was updated successfully, but these errors were encountered: