-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Composer - replace threadgate modal with alf dialog #4329
Conversation
mozzius
commented
Jun 3, 2024
iOS default | iOS with selections | Web |
Your Render PR Server URL is https://social-app-pr-4329.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-cpeok4i0si5c7390q780. |
|
5af0c1a
to
7eac04b
Compare
Pressing Escape now tries to dismiss both dialogs (previously it was ignored). We need to fix this to only dismiss the inner one (like with GIF picker). |
That's it loading your lists, maybe we should change the layout so that it's less janky |
nah, it never loads. just stuck like this. there also no new network requests. on main, there's no spinner. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- need to fix Escape handling
- distinguish no lists vs loading lists
@gaearon Interesting, is that 2-states solution preferable to using an effect? |
yeah, it avoids a "roundtrip", see here https://react.dev/reference/react/useState#storing-information-from-previous-renders:
however i think i'll actually move the state down so that it gets torn down on dialog close |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.