You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(profile): the employment page's onSuccess override kills the only working invalidation #586
ProfileEmploymentLeft passes an onSuccess callback into useEmploymentUpdateMutationWithSync. Because the hook spreads overrides last, that callback replaces the hook's own onSuccess, which is the only working invalidation on that page.
With invalidateProfileQueries also dead, nothing revalidates employment after a save. The UI shows the optimistic cache write for the full 2-minute staleTime, so a server-side coercion or partial write is invisible until the user reloads.
Fixed in #598 — options now merge through composeMutationOptions, which chains the caller's handler with the hook's rather than replacing it. onMutate stays the hook's, since react-query threads its return value through as the rollback context and two functions cannot both own that.
Activity
thinkclay commentedon Aug 12, 2026
Part of the profile-building audit rollup: #594
fix(profile): make profile saves actually revalidate (#581, #586) (#598)
thinkclay commentedon Aug 12, 2026
Fixed in #598 — options now merge through
composeMutationOptions, which chains the caller's handler with the hook's rather than replacing it.onMutatestays the hook's, since react-query threads its return value through as the rollback context and two functions cannot both own that.