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(compass-crud): persist modified document value COMPASS-8373 #6404

Merged
merged 4 commits into from
Oct 29, 2024

Conversation

mabaasit
Copy link
Contributor

@mabaasit mabaasit commented Oct 28, 2024

Description

Checklist

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

// value when the it's unmounted and is restored on next mount.
doc.setModifiedEJSONString(editing ? value : null);
};
}, [value, editing, doc]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe a docRef would make sense here? since we don't need to react to doc changes here, only value and editing

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added in c73a438, for the relevant function.

Copy link
Contributor

@paula-stacho paula-stacho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@mabaasit mabaasit merged commit daaa6e3 into main Oct 29, 2024
29 checks passed
@mabaasit mabaasit deleted the fix-crud-json-view branch October 29, 2024 12:32
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