Setting Up : A Freewrite
Una follow de cus una problem, what are you doing on next ?
and why are you trying to persist a data you get from the backend?
Upload your data, then revalidate profile page to get newest data from the backend
Revalidate profile page when upload is successfull.
nothing wey redux boys no dey do
Thank you for your response, Yes I do that with the form data but I need to refresh the component because of the image, I need the url to display the image after the user changes it.
Thank you for your response, please I need more context how on how I'd do that.
There is a method in nextjs called revalidatePath, you pass the path you want to revalidate to it, eg revalidatePath(‘/profile)
it is called only in server components
You can use router.refresh() in client components
this will refetch never data from the server
or if you r using tanstack query, just invalidate the query that fetches profile data
small api call them don complicate
Thank you so much I'll try that, have you implemented this sort of this before ? Maybe I could read your code and try to understand it better. It's been giving me a headache for days now.
Sometimes the api calls may be used just once o
do you mean only when those testers install the apps on their device?
Please what course do I need to become a data analyst
I used it but I don't know why you are having the error, what are you doing ?
I want to use endpoints on the app
How do you set it up ?