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
const Film = (props: { film:FragmentType<typeofFilmFragment> }) => {
90
-
const film =useFragment(FilmFragment, props.film)
89
+
const Film = (props: { film:FragmentType<typeofFilmItemFragment> }) => {
90
+
const film =useFragment(FilmItemFragment, props.film)
91
91
return (
92
92
<div>
93
93
<h3>{film.title}</h3>
@@ -108,13 +108,13 @@ For an introduction on how to design your GraphQL Query to leverage Fragment Mas
108
108
109
109
As explained in [our guide](/docs/guides/react-vue), the top-level GraphQL Query should include the fragment (`...FilmItem`) and pass down the data to child components.
110
110
111
-
At the component props definition level, the `FragmentType<T>` type ensures that the passed data contains the required fragment (here: `FilmFragment` aka `FilmItem` in GraphQL).
111
+
At the component props definition level, the `FragmentType<T>` type ensures that the passed data contains the required fragment (here: `FilmItemFragment` aka `FilmItem` in GraphQL).
0 commit comments