From 1f62c05cc0a20f687ebf8d4cec96ca5c2d958e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Di=C3=A9ssica=20Gurskas?= Date: Sat, 22 Oct 2016 16:51:51 -0200 Subject: [PATCH] Update instructions on hot reloading Alt stores --- docs/utils/hotReload.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/utils/hotReload.md b/docs/utils/hotReload.md index 28afeb7c..6668dfd1 100644 --- a/docs/utils/hotReload.md +++ b/docs/utils/hotReload.md @@ -9,11 +9,11 @@ permalink: /docs/hot-reload/ When working with webpack and something like [react-hot-loader](https://github.com/gaearon/react-hot-loader) changing stores often causes your stores to be re-created (since they're wrapped) while this isn't a big deal it does cause a surplus of stores which pollutes the alt namespace and the alt debugger. With this util you're able to get proper hot replacement for stores, changing code within a store will reload it properly. -To use this just export a hot store using `makeHot` rather than using `alt.createStore`. +To use this, export your hot store using `makeHot` from [alt-utils package](https://github.com/altjs/utils) (`npm install alt-utils`), rather than using `alt.createStore`. ```js import alt from '../alt'; -import makeHot from 'alt/utils/makeHot'; +import makeHot from 'alt-utils/lib/makeHot'; class TodoStore { static displayName = 'TodoStore'