generated from Seekra/repository-template
Feat(settings): function to get the value of a setting #168
2 Participants
Notifications
Due Date
No due date set.
Blocks
#175 Make color scheme and language a setting
Seekra/frontend
Reference: Seekra/frontend#168
Reference in New Issue
Block a user
This pull request adds a function
getSettingto get the value of a setting. It returns the stored value and, or otherwise the default value, or otherwiseundefined.Furthermore, a settings configuration cache store was added to avoid loading the settings always when getting a value of a setting and make the settings value retrieving function synchronous.
This function is part of a composable (
useSettings). There are tests for it.Related issues
Closes #163
890404a63eto77bfa2453677bfa24536toa17de3f132a17de3f132to6fa92062586fa9206258tofab7d7e901