Closed sjdweb closed 7 years ago
Just to update this, the key is making sure dummyData does not overwrite your props from connect()
. This does mean in Typescript you would need those properties to be nullable. But I was able to get the proper values through to the component this way.
@sjdweb could you share your example redux example ?
As above, any examples where the HOC (
createSkeletonProvider
) is wrapped in aconnect()
perhaps?My component will dispatch during componentWillMount if the data is not present, which doesn't seem compatible with dummyData method.