MobileNativeFoundation / MobileNativeFoundation/Store
[Proposal] Scoped Store
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 3.4k
- Forks
- 217
- Avg merge
- 18m
- Merged PRs (30d)
- 4
Description
I think it would be good to have a new type of store - call it a scoped store. A scoped store is a store that takes the key as a builder arg. This way you can just call store.get or store.fresh without having to pass Unit/emptyquotes everytime - @digitalbuddha
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the existing Store builder and the current get and fresh APIs to understand how the key and Unit/empty value are handled. Define the scoped-store behavior so the key is supplied as a builder argument and callers can use get or fresh without passing Unit or emptyquotes; completion requires agreement on the API and its tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100