Skip to content

why Recall initiate causes previous api to be called together? #3497

Answered by phryneas
dev-splin asked this question in Q&A
Discussion options

You must be logged in to vote

I have to admit, from the description I don't really understand what problem you are describing here, I'm sorry. Could you maybe explain that in more detail?

Generally: when getInitialProps or getServerSideProps are executed is a next.js thing, we can't really influence that.
I don't think you need the forceRefetch here (this will always be executed with a new empty store on the server) and you probably also don't need the unwrap (you only need that to access the result after the call, but here you're just prefilling the cache?).

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dev-splin
Comment options

@phryneas
Comment options

@dev-splin
Comment options

@dev-splin
Comment options

Answer selected by dev-splin
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