File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
packages/node_modules/overmind-components/src Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function init(componentVNode: VNode): void {
2626 const tree = component . tree
2727 let currentNode = componentVNode
2828
29- function createComponentVNode ( newState ) {
29+ const createComponentVNode = ( newState ) => {
3030 return ( component . fn as any ) ( component . props , {
3131 changeState : update ,
3232 state :
@@ -38,7 +38,7 @@ function init(componentVNode: VNode): void {
3838 } )
3939 }
4040
41- function update ( newState ?) {
41+ const update = ( newState ?) => {
4242 tree . track ( onFlush )
4343 try {
4444 currentNode . elm = componentVNode . elm
@@ -54,7 +54,7 @@ function init(componentVNode: VNode): void {
5454 tree . stopTracking ( )
5555 }
5656
57- function onFlush ( _ , __ , flushId ) {
57+ const onFlush = ( _ , __ , flushId ) => {
5858 update ( )
5959
6060 getApp ( ) . eventHub . emitAsync ( EventType . COMPONENT_UPDATE , {
Original file line number Diff line number Diff line change 1- import { VALUE } from 'proxy-state-tree'
21import h from 'snabbdom/h'
32
43import { component } from './component'
You can’t perform that action at this time.
0 commit comments