Topy
Topy
DDeno
Created by Topy on 8/7/2023 in #help
Best way to pass backend data to SSR rendered view?
Looking for the "proper" way to pass data to an SSR rendered view. My first idea is setting custom properties on the window object. Is there any standard? I use Oak as a backend I know frameworks such as Express have a render method that can do that, but I don't know what it's doing under the hood. Oak does have a context.state object that, according to the docs should be able to send data to the frontend view, but I cannot find the data on the frontend. Whether it be in the http response
5 replies