Closed timbot1789 closed 11 months ago
Hey @timbot1789, just wanted to make sure about this PR. Is this ready for review or it's still in progress?
Hey @timbot1789, just wanted to make sure about this PR. Is this ready for review or it's still in progress?
This is ready for review
Creates a shared hook for use with data models and parsing, and refactors useContactsList and useCivicProfile to use them.
The hook is designed to act as a base for shared logic for other hooks, which can then directly expose simple interfaces to components.
It takes the following props:
data
parameterThing
that can be used to interact with an RDF graph. This is used primarily by theadd
mutationfetch
It returns all the properties from React query along with a few additional ones:
add
(object: any) => unknown A mutation to add an object to the graph. You can also use this to update a Thing if the object maps to the same IDdelete
(id: string) => unknown A mutation to remove a Thing from the graph. Pass in the ID/URL of the Thing you wish to remove, and it will delete the thing