Best practice to store "app settings" #1958
Unanswered
Thorvarium
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Good question. I'd probably suggest a multi row table with setting type as the primary key. The typing is not very good in this situation (I'm planning to improve it). So for now, you'd probably benefit from a wrapper that can take retrieve setting and return it well typed. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@dfahlander I would be interested if any progress has been made here, is there an issue to track this? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I am working on a react application that has a lot of "settings" and they have a veriety of different types. Booleans, strings, arrays, etc.
What would be the optimal way to organize that on dixie to use with live queries ?
I've been debating between creating a table with a single row, but doing so kinda defeats the purpose of live queries because changing a column update the object on the react component. Yes, I could fix that encapsulating with contexts, but I am wondering if there is a better way.
Maybe creating a multirow table with column key and column valued as type "any"?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions