Skip to content
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

Load the notes from IndexedDB only once #51

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

tomasr8
Copy link
Member

@tomasr8 tomasr8 commented Jul 17, 2024

This fixes a rare confition when a user keeps typing
while the IndexedDB is saving the previous text.
When the text is saved, liveQuery triggers a rerender
which deletes whatever the user typed after IndexedDB
started saving the notes.
@tomasr8 tomasr8 force-pushed the notes-race-condition-fix branch from f24133c to e5e13d7 Compare July 18, 2024 10:43
Copy link

📝 Lighthouse report

@tomasr8 tomasr8 merged commit d3d4e51 into indico:master Jul 18, 2024
1 check passed
@tomasr8 tomasr8 deleted the notes-race-condition-fix branch July 18, 2024 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant