Skip to content

feat(core): add warnWhenUnsavedChanges to useEditableTable #6831

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

josh1643
Copy link

@josh1643 josh1643 commented Jun 6, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

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

@josh1643 josh1643 requested a review from a team as a code owner June 6, 2025 15:13
Copy link

changeset-bot bot commented Jun 6, 2025

🦋 Changeset detected

Latest commit: d418862

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

Copy link

netlify bot commented Jun 6, 2025

Deploy Preview for refine-doc-live-previews ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit d418862
🔍 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...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@josh1643 josh1643 changed the title feat(core): add warnWhenUnsavedChanges to useEditableTable #6811 feat(core): add warnWhenUnsavedChanges to useEditableTable Jun 6, 2025
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.

[FEAT] warnWhenUnsavedChanges prop for useEditableTable
1 participant