#Data from database in layout is necessary

6 messages · Page 1 of 1 (latest)

steady hazel
#

A need some data from the database in the layout for my ThemeProvider, I heard that having a fetch in the layout could be harmful.

I don't have any sensitive data in that request, because it does only contains tenant website informations

Is it okay to do that fetch in the layout, or what could be a possible solution?

astral hatchBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

sweet crystal
steady hazel
#

what are the exact cases that data is not refetched? I need some colors and theme settings tho so It shouldn't be a problem

sweet crystal
astral hatchBOT
#
✅ Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer

[Click here](#1285479999524175883 message)