refine
refine copied to clipboard
feat(core): add warnWhenUnsavedChanges to useEditableTable
PR Checklist
Please check if your PR fulfills the following requirements:
- [x] The commit message follows our guidelines: https://refine.dev/docs/guides-concepts/contributing/#commit-convention
Bugs / Features
- [ ] Related issue(s) linked
- [ ] Tests for the changes have been added
- [ ] Docs have been added / updated
- [x] Changesets have been added https://refine.dev/docs/guides-concepts/contributing/#creating-a-changeset
What is the current behavior?
The useEditableTable hook does not support the warnWhenUnsavedChanges prop, even though itβs supported in useForm.
What is the new behavior?
You can now pass warnWhenUnsavedChanges to useEditableTable, and it will work the same way as in useForm, showing a confirmation when navigating away with unsaved changes.
fixes #6811
Notes for reviewers
π¦ Changeset detected
Latest commit: d4188625b236bd43004b9fadb11b7725260f59b4
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type |
|---|---|
| @refinedev/core | Minor |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Deploy Preview for refine-doc-live-previews ready!
Built without sensitive environment variables
| Name | Link |
|---|---|
| Latest commit | d4188625b236bd43004b9fadb11b7725260f59b4 |
| Latest deploy log | https://app.netlify.com/projects/refine-doc-live-previews/deploys/6843058b6ac0090009d5af86 |
| Deploy Preview | https://deploy-preview-6831--refine-doc-live-previews.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.