Why use Redux Thunk, then you can do something like this:
ReadableAPI.getCategories().then((categories)=>{ console.log('after getCategories', categories) this.props.dispatch(addCategories(categories)) })
Is it not more straightforward and the same thing is achieved?
, redux-thunk . , - ( - "" ). , backbone, React. , , / . html, . html, Redux .
backbone
Redux
, , , view business, . , React Redux, , , , - Redux, , , -.
view
business
React
Redux Thunk , , , , .
Source: https://habr.com/ru/post/1688443/More articles:Использование Selenium для проверки скорости веб-сайта - performanceAngularJS XSRF strategy does not follow cookie paths - javaДоступ к частям матча в Perl 6 - perl6Xcode 9 error while trying to write automation in Safari - iosLike hidden data for a series of rows in a column based on certain conditions - excelHow to execute an https request to go to an incomplete TLS certificate? - sslAndroid Studio 3.0 build options don't match tastes - androidGetting RequestTimeout from S3 when downloading to the designated URL - ruby | fooobar.comAkka streams - resuming schedule with broadcast and mail after failure - scalaHeap extension command error: failed to initialize extension - dumpAll Articles