Skip to content

Commit

Permalink
fix: dep sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
drcmda committed Apr 11, 2024
1 parent c3ad823 commit 92e417b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/react-three-rapier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
},
"dependencies": {
"@dimforge/rapier3d-compat": "0.12.0",
"three-stdlib": "2.23.9",
"use-asset": "1.0.4"
"suspend-react": "^0.1.3",
"three-stdlib": "2.23.9"
},
"repository": "https://github.com/pmndrs/react-three-rapier/tree/master/packages/react-three-rapier"
}
4 changes: 2 additions & 2 deletions packages/react-three-rapier/src/components/Physics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import React, {
useState
} from "react";
import { MathUtils, Matrix4, Object3D, Quaternion, Vector3 } from "three";
import { useAsset } from "use-asset";
import { suspend } from "suspend-react";
import {
CollisionPayload,
CollisionEnterHandler,
Expand Down Expand Up @@ -409,7 +409,7 @@ export const Physics: FC<PhysicsProps> = (props) => {
maxCcdSubsteps = 1,
erp = 0.8
} = props;
const rapier = useAsset(importRapier);
const rapier = suspend(importRapier, ["@react-thee/rapier", importRapier]);
const { invalidate } = useThree();

const rigidBodyStates = useConst<RigidBodyStateMap>(() => new Map());
Expand Down
9 changes: 1 addition & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4041,7 +4041,7 @@ fast-deep-equal@^2.0.1:
resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz"
integrity sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==

fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
fast-deep-equal@^3.1.1:
version "3.1.3"
resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz"
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
Expand Down Expand Up @@ -7533,13 +7533,6 @@ url-parse-lax@^3.0.0:
dependencies:
prepend-http "^2.0.0"

[email protected]:
version "1.0.4"
resolved "https://registry.npmjs.org/use-asset/-/use-asset-1.0.4.tgz"
integrity sha512-7/hqDrWa0iMnCoET9W1T07EmD4Eg/Wmoj/X8TGBc++ECRK4m5yTsjP4O6s0yagbxfqIOuUkIxe2/sA+VR2GxZA==
dependencies:
fast-deep-equal "^3.1.3"

util-deprecate@^1.0.1:
version "1.0.2"
resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz"
Expand Down

0 comments on commit 92e417b

Please sign in to comment.