DenoDDeno
Powered by
richardR
Deno•3y ago
richard

How to display data from a Handler on every page?

Hi,
I am having the problem, that the PageProps are not accessible in the _app.tsx and I have not figured out how to access PageProps in a component (in the /components folder). If I give a component the PageProps parameter, Deno complains that I am not giving an argument in the calling file.
Can someone help me with that?

It is probably something that is done all the time in a project. In the end I just want to get something with a handler from a server and then display it in a component but as I stated, I do not know how to access that because I want to display it on every page using the app-wrapper.

TL;DR:
I want to make a HTTP Request and display the response on every page. How?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Take data from a ts file to display it in the html
DenoCitizenDDenoCitizen / help
2y ago
[Resolved][Fresh] How to load data asynchronously after rendering a page ?
StéphaneSStéphane / help
4y ago
How to send data from a child component to its sibling?
OokerOOoker / help
3y ago