File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
versioned_docs/version-v19.0.0/tutorial Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ function StoryLikeButton({story}) {
359
359
const {
360
360
// color1
361
361
updatableData
362
- } = store.readUpdatableFragment(
362
+ } = store.readUpdatableFragment<StoryLikeButton_updatable$key> (
363
363
// color2
364
364
fragment,
365
365
// color3
@@ -384,7 +384,11 @@ function StoryLikeButton({story}) {
384
384
doesViewerLike
385
385
}
386
386
`;
387
- const {updatableData} = store.readUpdatableFragment(fragment, story);
387
+ const { updatableData } =
388
+ store.readUpdatableFragment<StoryLikeButton_updatable$key>(
389
+ fragment,
390
+ story
391
+ );
388
392
// change
389
393
const alreadyLikes = updatableData.doesViewerLike;
390
394
updatableData.doesViewerLike = !alreadyLikes;
Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ function StoryLikeButton({story}) {
359
359
const {
360
360
// color1
361
361
updatableData
362
- } = store.readUpdatableFragment(
362
+ } = store.readUpdatableFragment<StoryLikeButton_updatable$key> (
363
363
// color2
364
364
fragment,
365
365
// color3
@@ -384,7 +384,11 @@ function StoryLikeButton({story}) {
384
384
doesViewerLike
385
385
}
386
386
`;
387
- const {updatableData} = store.readUpdatableFragment(fragment, story);
387
+ const { updatableData } =
388
+ store.readUpdatableFragment<StoryLikeButton_updatable$key>(
389
+ fragment,
390
+ story
391
+ );
388
392
// change
389
393
const alreadyLikes = updatableData.doesViewerLike;
390
394
updatableData.doesViewerLike = !alreadyLikes;
You can’t perform that action at this time.
0 commit comments