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
Hi there, I wanted to ask for help in solving this problem, here is what I'm trying to do:
Serve up a public page with a dynamic route (ex. [id].js)
I wanted to get the Client IP (Client Side)
Grabbing the slug ([id]), I wanted to fetch data from an IP sending both the IP and the ID to the API url.
Then rendering the page with the returned data - with Open Graph tags in the header for Social Media sharing.
Can someone suggest how I should approach this?
I took advantage of useState and useEffects, but I cannot get the final rendered to overwrite the HTML source, and it builds the static HTML with the first render pass.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there, I wanted to ask for help in solving this problem, here is what I'm trying to do:
Can someone suggest how I should approach this?
I took advantage of useState and useEffects, but I cannot get the final rendered to overwrite the HTML source, and it builds the static HTML with the first render pass.
Thanks in Advance.
Beta Was this translation helpful? Give feedback.
All reactions