Create a useDataState hook (used with DataStateProvider)
This load all the database in memory and refresh it every time a change is made (with put/post/delete)
Use a Select to fill the person_id of sample
API quickfixes
I only changed new_person, new_sample, location_table and person_table, the rest has been left untouched
types.ts
)useDataState
hook (used withDataStateProvider
) This load all the database in memory and refresh it every time a change is made (with put/post/delete)Select
to fill theperson_id
of sampleI only changed
new_person
,new_sample
,location_table
andperson_table
, the rest has been left untouched