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

fix(ui): client side doc data not updating after save #9340

Merged
merged 4 commits into from
Nov 19, 2024

Conversation

JarrodMFlesch
Copy link
Contributor

@JarrodMFlesch JarrodMFlesch commented Nov 19, 2024

What?

When a document is saved the data from useDocumentInfo was stale.

Why?

Previously we would refresh the entire document by calling the form-state endpoint, we no longer do that.

How?

Adds a new variable accessible from useDocumentInfo, savedDocumentData, that is updated when the document is successfully saved and defaults to initialData.

@jacobsfletch jacobsfletch changed the title fix: client side doc data not updating after save fix(ui): client side doc data not updating after save Nov 19, 2024
@denolfe denolfe removed the v3 label Nov 19, 2024
@JarrodMFlesch JarrodMFlesch merged commit 661f450 into main Nov 19, 2024
52 checks passed
@JarrodMFlesch JarrodMFlesch deleted the fix/stale-doc-data branch November 19, 2024 18:22
Copy link

🚀 This is included in version v3.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants