Skip to content

Feature Request - Non-Global store. #2

@dbteku

Description

@dbteku

A requested feature in an article I wrote about stateful talked about how nested NPM components that use this library could inherently collide with each other. This is something I have been thinking about for awhile, and in v2 of stateful there will be a solution.

This is just an idea but here is a way that might look.

// basically separating stores by partitionIds will help with this. You will have to pass your own identifiers to keep the library small. (The suggested is using a UUID)
// This is what it might look like.
const partitionId = createPartition(uuid());

I know many people don't use this yet, but I'm hoping to make this as professional as I can.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions