-
Notifications
You must be signed in to change notification settings - Fork 1k
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
we broke Scaffold useFlash
#1839
Comments
Maybe related to #1701 We kind of came to the conclusion to replace ours with https://react-hot-toast.com/ |
'cause Hot Toast is the best. name. ever. |
We have been using react-hot-toast as a replacement for use flash and its been splendid. |
While we're up for breaking things, I'm thinking I'll just use the real API from react-hot-toast rather than trying to proxy everything through our stuff like If I can figure out how to do it, I'll forward messages from |
@peterp How do you feel about adding react-hot-toast to |
I'm using it on Snaplet as well and it's awesome!
Sounds like a plan!
I think it's OK to add it now, our own package is 10kb, and we can always remove it at a later stage. |
We do want something nice in the scaffolds though... I was planning on just importing * and exporting everything back out in |
I think opt in could work if we deffo need something in the scaffolds. Like forms so if you wanted to just use it by its self there would not be a problem, or you could use the wrapper if wanted! |
For Scaffolded UI, we include
useFlash
for all CRUD. However, Flash messages no longer appear for each case:NewPost.js
) = ⛔EditPostCell.js
) = ⛔Post.js
) = ⛔Posts.js
) = ✅The Contact Submit Flash message is working correctly.
My suspicion is that we broke this sometime during the Apollo v3 upgrade process.
Video Demo of missing Flash messaging
Screen.Recording.2021-02-22.at.5.38.48.PM.mov
The text was updated successfully, but these errors were encountered: