Skip to content
Discussion options

You must be logged in to vote

Hi @fromi,

I've built the following working example that shows how to make a property usable for React loops:

As you can see here, we request the field used as an iteration key inside and outside of the fragment:
https://github.com/charlypoly/codegen-repros/blob/cffbfd5d8a0d835f8328250858ade371dcfbcc6c/client-preset-fragments-loops/src/App.tsx#L10-L18

it can then be used properly: https://github.com/charlypoly/codegen-repros/blob/master/client-preset-fragments-loops/src/App.tsx#L30

Finally, on your last question regarding $fragmentRefs; those are necessary to provide Fragment Masking capabilities (isolating data dependencies).
You will find more information on this architecture principle…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@pongells
Comment options

Answer selected by charlypoly
Comment options

You must be logged in to vote
2 replies
@charlypoly
Comment options

@fromi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants