Replies: 1 comment 3 replies
-
call your api in server component then pass the data or a subset of it to the client component as props, if you need filterting/sorting, etc. you can do that via query params in the server component by playing with link params or if the dataset is small you can use regular client components for such operations |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
is good practice to call an api twice , one for server component and one for client component ? so i use regular fetch for server and rtk query for client , also when i invalidte , i invalidate twice
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions