Hacker News new | past | comments | ask | show | jobs | submit login

Why will I use !browser, when I simply move that code into .server endpoint (or file)?





Because then you are doing a different thing than I did there.

The universal load function specifically not only injects the data on the server before serving the page but then also runs on the client once the page is loaded.

In my specific case the client side version hit a different api, hosted in a different region. There are different use cases for this though.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: