malerba118 / react-use-database

React hooks for easy relational data management on the client
54 stars 3 forks source link

Add inspection utilities #2

Open malerba118 opened 5 years ago

malerba118 commented 5 years ago

mergeEntities could take an inspectionKey and createDB could take an inspector function that would except one arg {inspectionKey, prevState, patch, nextState}. this info could be logged every time entities were merged and the inspectionKey could give visibility into the call site of mergeEntities.