1- import { create , w , v } from '@dojo/framework/core/vdom'
1+ import { create , w , v , diffProperty } from '@dojo/framework/core/vdom'
22import Button from './Button' ;
33
44export interface ButtonConfig {
@@ -11,14 +11,15 @@ export interface ButtonsProperties {
1111 buttonConfigs : ButtonConfig [ ] ;
1212}
1313
14- const factory = create ( ) . properties < ButtonsProperties > ( ) ;
14+ const factory = create ( { diffProperty } ) . properties < ButtonsProperties > ( ) ;
1515
16- export default factory ( function Buttons ( { properties } ) {
16+ export default factory ( function Buttons ( { properties, middleware : { diffProperty } } ) {
17+ diffProperty ( 'buttonConfigs' , properties , ( ) => { } ) ;
1718 const { buttonConfigs } = properties ( ) ;
1819 return v ( 'div' , { classes : [ 'jumbotron' ] } , [
1920 v ( 'div' , { classes : [ 'row' ] } , [
2021 v ( 'div' , { classes : [ 'col-md-6' ] } , [
21- v ( 'h1' , [ 'Dojo v6.0.0 ' ] )
22+ v ( 'h1' , [ 'Dojo v7 ' ] )
2223 ] ) ,
2324 v ( 'div' , { classes : [ 'col-md-6' ] } , buttonConfigs . map ( ( { id, label, onClick } ) => {
2425 return w ( Button , { key : id , id, label, onClick } ) ;
0 commit comments