MobileNativeFoundation / MobileNativeFoundation/Store

[Proposal] Scoped Store

Open
#547 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.