Skip to content

Fix dig to inline options - #66

Merged
jho406 merged 2 commits into
mainfrom
fix-dig-to-inline-options
Oct 2, 2026
Merged

jho406 merged 2 commits into
mainfrom
fix-dig-to-inline-options

Conversation

@jho406

@jho406 jho406 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

jho406 and others added 2 commits October 2, 2026 10:59
Digging to a node written with an inline options object, e.g.
`json.cart(with.partial("cart"))`, rendered nothing: the found node is
only rendered when it has a block, and an inline options node has none.
Its content comes from the options, so render it when those are a
Props::Options too.

Digging through such a node into its partial already worked, which is
what the existing specs covered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
found_path! sliced the found path by the length of the fragment path,
which is only set when the dig crosses a fragment. Any other dig, or
calling it without digging, raised NoMethodError on nil. superglue's
layout calls it on every props_at request, so digs into plain nodes
returned a 500.

Fall back to an empty fragment path, which returns the full path the
client grafts onto the page, as found_path! did before 4183fd0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jho406
jho406 merged commit 1424498 into main Oct 2, 2026
18 of 24 checks passed
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