• 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
..
annotator Loading commit data...
boot Loading commit data...
images/icons Loading commit data...
shared Loading commit data...
sidebar Loading commit data...
styles Loading commit data...
test-util Loading commit data...
types Loading commit data...
.eslintrc Loading commit data...
karma.config.js Loading commit data...
tsconfig.json Loading commit data...