Skip to content

Leveraging paginated data in "item" page #785

Answered by johnslay
petersendidit asked this question in General
Discussion options

You must be logged in to vote

How about this?

React.useEffect(() => {
  data.forEach(film => {
    queryCache.setQueryData(`film-${film.id}`, film)
  })
}, [data])

Replies: 3 comments 3 replies

Comment options

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

Comment options

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

Comment options

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

Answer selected by petersendidit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants