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
In getPokemonByName query i change param from name: string to object {name: string}, i got two api call when i first visit pokemon detail page.
The text was updated successfully, but these errors were encountered:
phongpt156
changed the title
Duplicate api request when getPokemonByName accept an object params instead of string
Duplicate api request when getPokemonByName query accept an object params instead of string
Oct 19, 2022
phongpt156
changed the title
Duplicate api request when getPokemonByName query accept an object params instead of string
Duplicate api request when getPokemonByName query accept an object instead of string
Oct 19, 2022
Well, did you change that both in the getServerSideProps function and the hook or only in one of both? Just a screenshot of the network tools is not really enough to help you I'm afraid.
In getPokemonByName query i change param from name: string to object {name: string}, i got two api call when i first visit pokemon detail page.
The text was updated successfully, but these errors were encountered: