Introducing a breaking change in the signature of the useGeometry hook to fix #1684
The problem came from passing false or undefined as the value of the params parameter in order to skip updating the geometry (e.g. when the R3F object is hidden). I change the signature of the hook to decouple this feature from the params parameter: the hook now accepts a config object as fourth argument (which also makes the isInteractive boolean more explicit).
Introducing a breaking change in the signature of the
useGeometry
hook to fix #1684The problem came from passing
false
orundefined
as the value of theparams
parameter in order to skip updating the geometry (e.g. when the R3F object is hidden). I change the signature of the hook to decouple this feature from theparams
parameter: the hook now accepts aconfig
object as fourth argument (which also makes theisInteractive
boolean more explicit).