I can't see a good reason why there is a suspense boundary inside the library, this should ideally be handled by consumers for more granular control. E.g. consumer might not want to render null.
|
function Physics(props: ProviderProps) { |
|
return ( |
|
<Suspense fallback={null}> |
|
<Provider {...props} /> |
|
</Suspense> |
|
) |
|
} |
This would unfortunately be a breaking change, but in the long run I think it's a good one.
I can't see a good reason why there is a suspense boundary inside the library, this should ideally be handled by consumers for more granular control. E.g. consumer might not want to render
null.use-cannon/src/index.tsx
Lines 8 to 14 in 543f3e2
This would unfortunately be a breaking change, but in the long run I think it's a good one.