Automattic / create-content-model

Create content models from the UI
GNU General Public License v2.0
160 stars 7 forks source link

Bug: Exiting a post always displays a 'unsaved changes' warning even if there are no unsaved changes. #104

Open bacoords opened 2 months ago

bacoords commented 2 months ago

I'm guessing we're updating an entity prop somewhere that shouldn't be.

zaguiini commented 2 months ago

Yep: https://github.com/Automattic/create-content-model/blob/d74d16dc6a5e3c946b4ee61016b8ca8260b8797f/includes/runtime/src/hooks/use-fallback-value-clearer.js#L54