-
Notifications
You must be signed in to change notification settings - Fork 95
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
Add isSaving
state to project title and description
#519
Conversation
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.
If I'm understanding this correctly, I'm not sure it would work if someone were to very quickly save a title and then a description because this is tracking each saving state separately and we're not doing any enqueueing of the async tasks (and the save function as-is wouldn't be able to differentiate between saving each field). It seems like the easiest thing would be to just make one saving state (like we do for the sidebar), or else make changes to support saving each field separately. Let me know if you think I'm misunderstanding the logic though.
I changed the |
Okay, yeah agree about the UX, but I was just thinking about the functionality. I'm wondering if there still might be an edge case where the first task fails and the request gets lost, but I'm okay with leaving that for later if it's a possibility. |
Ah, looking back at it, I was under the assumption that we always saved title, description and status regardless of which attribute was changing. That isn't the case so I'm switching to an |
Adds an
isSaving
spinner to the project title and description fields.