React async router - how send props


#1

How to send props to the resolved component, using async router in React?

async: function(routeTo, routeFrom, resolve, reject) {

  resolve({
    component: WorkSchedulePage,
    options: {
      props: {
         {a: 1}
      }
    }
  })
}

The above doesn’t work. When component is getting initialized, it doesn’t have any props.