This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
4.2.0
- adds
LOCAL_STORAGE_KEY
to.env
, to allow saving/retrieving MobX store state tolocalStorage
on the client - adds
schema/schema.graphql
, with sample schema for Hacker News stories - refactors
<StateConsumer>
as newwithStore()
HOC in@/lib/store.ts
- refactors
<HackerNews>
example to use the new auto-generayed<GetHackerNewsTopStories.Component>
- removes default exports in example components
- fixes #150 - React-Hot-Loader 4.7
- renames
@/data/state.ts
->@/data/store.ts
(now exportsStore
class) - adds
autosave
and newrehydrate
funcs in@/lib/store.ts
, for saving and retrieving MobX state to/fromlocalStorage
- refactors
@/entry/client.tsx
with new MobX store hydration/auto-save - refactors
@/entry/server.tsx
with new MobX store - adds auto-generated
@/graphql/index.tsx
with query and HOC for getting top HackerNews stories - removes previous
@/lib/mobx.ts
- fixes static runner; removes
koa2-history-api-fallback
package in favour of a local function - adds
HOST
to.env
andcommon.host
in runner to allow binding to non-localhost
- adds
react-dom
alias to Webpack common config, to use@hot-loader/react-dom
- renames
__APOLLO_STATE__
->__APOLLO__
, for Apollo GraphQL rehydration on the client - passes per-request
store
tocreateClient()
, for use-cases where store data is needed inside GraphQL requests (JWTs, etc)