Skip to content

respect prop changes for on[Delete/Update/Edited] callbacks#186

Merged
brennanwilkes merged 1 commit intoalex3165:masterfrom
DennisNissen:master
Feb 4, 2025
Merged

respect prop changes for on[Delete/Update/Edited] callbacks#186
brennanwilkes merged 1 commit intoalex3165:masterfrom
DennisNissen:master

Conversation

@DennisNissen
Copy link
Contributor

EditControl silently makes onDelete, onEdited and onCreated immutable by passing the initial value to the Control Component, but not updating it when they change.

This could lead (or it did in my project) to imcomprehensible problems.

By adding the callback properties to the useEffect function that creates the control, this is fixed.

@brennanwilkes brennanwilkes merged commit a3373dc into alex3165:master Feb 4, 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.

2 participants