We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 823e732 commit 9483417Copy full SHA for 9483417
docs/src/docs/07-api.md
@@ -172,6 +172,19 @@ reactor.registerStores({
172
})
173
```
174
175
+#### `Reactor#replacStores(stores)`
176
+
177
+`stores` - an object of storeId => store instance
178
179
+Replace the implementation only of specified stores without resetting to their initial state. This is useful when doing store hot reloading.
180
181
+```javascript
182
+reactor.replaceStores({
183
+ 'threads': require('./stores/thread-store'),
184
+ 'currentThreadID': require('./stores/current-thread-id-store'),
185
+})
186
+```
187
188
#### `Reactor#reset()`
189
190
Causes all stores to be reset to their initial state. Extremely useful for testing, just put a `reactor.reset()` call in your `afterEach` blocks.
0 commit comments