• Robert Knight's avatar
    Split `useStore` hook into general and app-specific hooks · e0f3f7d3
    Robert Knight authored
    Split the `useStoreProxy` hook into a generic/base `useStore` hook that handles
    wrapping a store created with `createStore`, and a `useSidebarStore` hook that
    handles looking up the sidebar's main store via `useService('store')` and
    passing it to the base hook.
    
    This follows the existing separation of responsibilities between `createStore`
    vs `createSidebarStore`, and would potentially allow us to split the generic
    store infrastructure code into a separate package for use in other projects in
    future.
    e0f3f7d3
Name
Last commit
Last update
..
test Loading commit data...
Annotation.js Loading commit data...
AnnotationActionBar.js Loading commit data...
AnnotationBody.js Loading commit data...
AnnotationDocumentInfo.js Loading commit data...
AnnotationEditor.js Loading commit data...
AnnotationHeader.js Loading commit data...
AnnotationLicense.js Loading commit data...
AnnotationPublishControl.js Loading commit data...
AnnotationQuote.js Loading commit data...
AnnotationReplyToggle.js Loading commit data...
AnnotationShareControl.js Loading commit data...
AnnotationShareInfo.js Loading commit data...
AnnotationTimestamps.js Loading commit data...
AnnotationUser.js Loading commit data...
index.js Loading commit data...