Feat(settings): function to get the value of a setting #168
Open
jakob.scheid
wants to merge 4 commits from
feature/setting-value-function into main
pull from: feature/setting-value-function
merge into: :main
:main
:feature/legal-notice
:feature/setting-value-function
:chore/privacy-policy-and-imprint
No Reviewers
Labels
Clear labels
Area/Global
Area/Legal
Area/Search Results
Area/Settings
Area/Sidebar
Area/Start page
Compat/Breaking
Kind/Bug
Kind/Chore
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Refactor
Kind/Security
Kind/Testing
Kind/Urgent
A global issue or pull request
An issue or pull requests related to the search results feature
The issue or pull request is related to the settings
The issue or pull request is related to the sidebar
Related to the start page
Breaking change that will not be backward compatible
Something is not working
Chore and maintainerance
Documentation changes
Improve existing functionality
New functionality
Refactoring code
This is security issue
Issue or pull request related to testing
The issue or pull request is urgent
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Low
4
The priority is low
Priority
Medium
3
The priority is medium
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Will Not Fix
3
This issue will not be fixed
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Projects
Clear projects
No projects
Project Board
Review
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Seekra/frontend#168
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking 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
890404a63eto77bfa24536View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.