B
Blueprint13mo ago
fyz

Using blueprint variable inside TSX components

Hello again ! Still trying blueprint and been working on a React component with the documentation's infos and was wondering, is there a simple way to get blueprint variables (db variables for instance) inside of it ? Thanks for your help !
3 Replies
Emma
Emma13mo ago
You'll have to create API endpoints to provide them. Everything in TSX components is ran on the client, which shouldn't have access to the database directly. Everything in PHP is ran on the server first, which should have access to the database directly. I'll give you the extension developer role so you can ask these questions directly to them in #developers.
fyz
fyzOP13mo ago
Thanks a lot !! 🙏
Emma
Emma13mo ago
No problem!

Did you find this page helpful?