Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a store for our data #12

Open
YetAnotherJonWilson opened this issue Aug 28, 2022 · 1 comment
Open

Create a store for our data #12

YetAnotherJonWilson opened this issue Aug 28, 2022 · 1 comment

Comments

@YetAnotherJonWilson
Copy link
Collaborator

YetAnotherJonWilson commented Aug 28, 2022

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

@YetAnotherJonWilson
Copy link
Collaborator Author

We may be able to use solid-client, as we have really simple data needs, at least for getting started. Probably just an array of objects, where each object contains two items, startDate (https://schema.org/startDate) and endDate (https://schema.org/endDate).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant