score:2

as i said in comments: you should make it as empty array/object and "initialize" state later with proper action. right now instead of making state with array you fill it with promise.

my sample using react with hooks and settimeout (this will work the same with your fetch): https://codesandbox.io/s/6wwy4xxwwr?fontsize=14

you can also just do it in your "index.js" using store.dispatch(action) like:

import store from './filewithconststore';

fetch()
.then(data => {
  store.dispatch({
    type: 'init_bookings',
    payload: data 
  })
});

but this rather quick than approved solution.


Related Query

More Query from same tag