ali
How to make fetch request on server before sending html to client?
Thanks for the reply. I replicated my problem here: https://codesandbox.io/p/devbox/naughty-villani-mpv54m?file=%2Fsrc%2Froutes%2Findex.tsx
11 replies
How to make fetch request on server before sending html to client?
Thanks for the reply. I have changed my code now to this:
but instead of getting the rows from the DB, in <main>{data()}</main> I get:
"undefinedundefinedundefinedundefinedundefined"
In the api, I limited the rows to be returned to 5. So it seems it is giving me the right amount of results, but they are all undefined.
Do you know why?
11 replies