trainline / react-skeletor

Skeleton loading for React
https://trainline.github.io/react-skeletor/
Other
554 stars 27 forks source link

Any examples using with Redux? #7

Closed sjdweb closed 7 years ago

sjdweb commented 7 years ago

As above, any examples where the HOC (createSkeletonProvider) is wrapped in a connect() perhaps?

My component will dispatch during componentWillMount if the data is not present, which doesn't seem compatible with dummyData method.

sjdweb commented 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.

adesurirey commented 6 years ago

@sjdweb could you share your example redux example ?