fix: ensure form updates with latest data after mutation

added a form reset to reflect up-to-date data changes and adjusted mutation to prevent id exclusion, ensuring lists are updated properly.
This commit is contained in:
dswbx
2025-09-23 13:47:10 +02:00
parent 49aee37199
commit ffe53d3fb5
2 changed files with 4 additions and 0 deletions

View File

@@ -156,6 +156,7 @@ export const useEntityQuery = <
// mutate all keys of entity by default
if (options?.revalidateOnMutate !== false) {
// don't use the id, to also update lists
await mutateFn();
}
return res;