Skip to content

Create a store for our data #12

Description

@YetAnotherJonWilson

Probably use rdflib. Here's the recommendation from a Gitter chat on this topic:

For global (app wide) data we already have a store, the rdflib store. For local (component) data use state or context.
You could put the rdflib store in a context, and then retrieve it in hooks further down in the component tree to query specific data for that component
Create the rdflib store on top level, e.g. next to the root react render, the pass the store to a context provider
You can also use reacts useReducer in certain places where you want the redux action/reducer style instead of plain data read/write

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions