Fix Cast lazy loading
Move all the heavy initialization, which takes ~300ms, from require('./lib/cast') to Cast.init()
This commit is contained in:
@@ -249,7 +249,7 @@ function dispatch (action, ...args) {
|
||||
}
|
||||
|
||||
var handler = dispatchHandlers[action]
|
||||
if (handler) handler.apply(null, args)
|
||||
if (handler) handler(...args)
|
||||
else console.error('Missing dispatch handler: ' + action)
|
||||
|
||||
// Update the virtual-dom, unless it's just a mouse move event
|
||||
|
||||
Reference in New Issue
Block a user