AwsmBuff
AwsmBuff2y ago

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?
0 Replies
No replies yetBe the first to reply to this messageJoin