Skip to content

Version 2.13.0

Compare
Choose a tag to compare
@bluebill1049 bluebill1049 released this 24 Mar 03:04
· 118 commits to master since this release
  • support multiple store sync
createStore({
  yourDetail, // it's an object of your state { firstName: '', lastName: '' }
}, {
  syncStores : [
     { 
       externalStoreName: 'externalStoreName',
       transform: ({ externalStoreData, currentStoreData }) => {
         return { ...externalStoreData, ...currentStoreData };
        },
     }
  ]
})