What is redux-thunk in react?

Redux Thunk is a middleware that allows you to call the action creators that return a function(thunk) which takes the store’s dispatch method as the argument and which is afterwards used to dispatch the synchronous action after the API or side effects has been finished.

Read more

Redux thunk middleware nedir?

Eğer Redux ‘a giriş yaptıysanız redux -thunk ‘ı duymuşsunuzdur. Thunk ; saf olmayan fonksiyonlarımızı, saf Redux actionlarımızla kaynaştıran bir middleware ‘dir. Redux reducer’larımızın her daim saf olması, uygulamamızın sağlıklı işlemesi açısından çok önemlidir.3 Mar 2018

Read more

Redux logger nedir?

redux -logger ise redux için bir middleware olup, store’dan geçen her bir action’ın console’a log’lanmasını sağlar. redux -persist ise redux ‘taki bilgilerin kalıcı olarak localStorage’da tutulmasını sağlar. Bu sayede kullanıcı uygulamayı tekrar açtığında verilerin yeniden çekilmesine gerek kalmaz.

Read more