-
Notifications
You must be signed in to change notification settings - Fork 15
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
🐛 Fix: All day event doesn't disappear after changing the week - Attempt #2 #185
🐛 Fix: All day event doesn't disappear after changing the week - Attempt #2 #185
Conversation
Can you provide steps to replicate this? Are you referring to the sidebar's re-rending (including the loading spinner)? If so, that's a known and unrelated issue. If it's something else related to the main-grid, then I'd like to replicate it before merging this |
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.
This is much better so far.
Would like more clarification on the flickering you mentioned before QA-ing further.
How to reproduce the "flickering" event bug:
I'm not sure what is causing that but I suspect it might be something to do with the order of the steps in Update: my suspiction is that when we change the current week, |
Thanks for including the detailed steps to reproduce it. Since that behavior exists in Doing a little more QA on this one, but it's in pretty good shape. Please feel free to continue working on your other issue while I continue testing/tweaking |
use shouldRemove prop to determine whether to delete or edit (was previously calling both)
this'll reduce the payload needed for when the sidebar calls this action (which doesn't need to use this concept of removing)
3da870a
to
6e20ac3
Compare
This is a better, non-style-level fix for #178
As you suggested, I've added some logic into
useDraftUtil.ts:submit
to check if the updated event will be rendered inside current view. If not, it marks the event to be removed from the store after the update. Now once we save an event with dates for a different week, it immediately disapers from the screen.All automated tests have passed.
However, the "flicking" event with full width still persists for some milliseconds once you change weeks. I'm not sure yet what is the cause of this, but I will let the PR open while I give a look on this.