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
Right now i'm casting fragment inside vue template. How it can be done in more elegant way? I checked nested fragments example, but it's not represent how to use that for arrays.
Right now i have to cast fragment of fragment to right type inside template, but it feels ugly.
Fragments:
exportconstChatMessage_Fragment=graphql(` fragment ChatMessage_Fragment on ChatMessage { id segments { type content ... on MessageSegmentMention { user { id color displayName } } ... on MessageSegmentEmote { emote { ...ChatEmote_Fragment } } } sender { id avatarUrl color createdAt name displayName roles { id name features channelId imageUrl } } createdAt reactions { ...ChatReaction_Fragment } replyTo }`)exportconstChatEmote_Fragment=graphql(` fragment ChatEmote_Fragment on Emote { id name url width height }`)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Right now i'm casting fragment inside vue template. How it can be done in more elegant way? I checked nested fragments example, but it's not represent how to use that for arrays.
Right now i have to cast fragment of fragment to right type inside template, but it feels ugly.
Fragments:
Component:
Beta Was this translation helpful? Give feedback.
All reactions