Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Change fragmentRefs output to use typename string literal rather than $tada.ref #126

Merged
merged 3 commits into from
Mar 11, 2024

Conversation

kitten
Copy link
Member

@kitten kitten commented Mar 11, 2024

Resolves #110

Summary

This replaces the $tada.ref value on the $tada.fragmentRefs record for masked fragments with a string literal of the typename of the given fragment, further increasing readability and further decreasing the chance of fragment name conflicts.

Using the symbol as a value flag was redundant, since the entire object is already a value on a symbol property ($tada.fragmentRefs) and this change will further increase readability of output types.

It also happens to fix #110, since Remix's JsonifyObject does not filter keys but only values.

Set of changes

  • Replace $tada.ref value with fragment typename

@kitten kitten changed the title Fix/change fragment refs output fix: Change fragmentRefs output to use typename string literal rather than $tada.ref Mar 11, 2024
Copy link

changeset-bot bot commented Mar 11, 2024

🦋 Changeset detected

Latest commit: 04d004b

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kitten kitten merged commit ba6e556 into main Mar 11, 2024
2 checks passed
@kitten kitten deleted the fix/change-fragment-refs-output branch March 11, 2024 11:13
@github-actions github-actions bot mentioned this pull request Mar 11, 2024
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.

Masked Fragment inference with Remix/React Router useLoaderData pattern
2 participants