Skip to content

fix(hooks): revalidate orphan deliverable on any planning event#2646

Open
gularsson wants to merge 1 commit into
mainfrom
feature/elelog-702-usedeliverableinfo-never-recovers-when-first-fetch-returns
Open

fix(hooks): revalidate orphan deliverable on any planning event#2646
gularsson wants to merge 1 commit into
mainfrom
feature/elelog-702-usedeliverableinfo-never-recovers-when-first-fetch-returns

Conversation

@gularsson
Copy link
Copy Markdown
Contributor

useDeliverableInfo filtered planning events by the stored planningUuidRef. When the initial fetch returned no planning (orphan timeless row, race during creation), the ref stayed undefined and the filter never matched, so the row never recovered without a full reload.

Track first-resolve separately; when resolved with no planningUuid, revalidate defensively on any planning event. After adoption the strict match path takes over again. Existing "skip events while pending" behavior is preserved.

Refs ELELOG-689 (I7).

useDeliverableInfo filtered planning events by the stored
planningUuidRef. When the initial fetch returned no planning (orphan
timeless row, race during creation), the ref stayed undefined and the
filter never matched, so the row never recovered without a full reload.

Track first-resolve separately; when resolved with no planningUuid,
revalidate defensively on any planning event. After adoption the strict
match path takes over again. Existing "skip events while pending"
behavior is preserved.

Refs ELELOG-689 (I7).
@gularsson gularsson self-assigned this May 25, 2026
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.

1 participant