Skip to content
Discussion options

You must be logged in to vote
const fetchNextPage = () => {
  params.page = params.page + 1
}

the rules of react still apply. Try to display params in a <div> and you would get the same "not working" state. You can't write to refs and expect them to magically update somewhere. That's what state is for ...

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@dm0114
Comment options

@TkDodo
Comment options

@dm0114
Comment options

@TkDodo
Comment options

Answer selected by dm0114
@dm0114
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
2 participants