Getting Page Title
If this is in a route:
<Title>Example 🧘♀️</Title>
Is there anyway to get that information in the Layout of that route please? I figured I could hack like an onMount + js thing but wondering if server side in the layout i could know this info w/ Solid's api please?
2 Replies
Step back for a moment and think.
If you have to get the title that way then you have a solution/architectural problem, not a Solid problem.
Given that the app is driving the content of that title, any part that needs access to that information should already have it; if it does not then the current approach isn't fit for purpose and needs to be re-thought.
Smart! Ty Sir!