Releases: bfitch/cerebral-falcor-module
Releases · bfitch/cerebral-falcor-module
Update README for v0.2.0
Namespace Falcor data in Cerebral
Changelog
-
Bug Fix: Falcor data is now namespaced in baobab, which prevents overwriting cerebral only state. Resolves: #3
-
Falcor's
sourceendpoint defaults to `'/model.json' and is not a required optionMigration
-
A namespace can be passed as an option to the falcor module. It defaults to 'falcor':
controller.register({
falcor: FalcorModule({
namespace: 'custom', // optional, defaults to 'falcor'
model: model
})
});- Define the namespace in baobab:
const model = Model({
page:'about',
custom: {} // defaults to 'falcor'
});- Update components to grab namespaced data: