Providing a custom Layout

I tried this example to start working on custom layouts, but I am unsure if that's working for me (e.g., the print statement doesn't get executed). Do you have to do anything special to "register" this Layout, or is adding this to my __init__.py, like what I am doing now, sufficient?
No description
1 Reply
iisakkirotko
iisakkirotko3mo ago
Hey! Whether adding it to your __init__.py works depends on how you do routing. Try placing the Layout component in the same place where your root route (or whatever routes you want to apply the layout to) Page component is
Want results from more Discord servers?
Add your server