Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix (docs): warn about three/web interactions #2336

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/app/routes/docs.guides.react-three-fiber.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ and `react-three-fiber` you'll need to install the `@react-spring/three` package
yarn add @react-spring/three @react-three/fiber three
```

:::warning
By default, importing `@react-spring/three` hands frameloop control over to r3f - this is a global setting and means that any other reconcilers
(such as `@react-spring/web`) will no longer advance on their own, and will appear to be paused. A workaround is to adjust the global setting after
import using -
```typescript
import { Globals } from '@react-spring/web'
Globals.assign({
frameLoop: 'always',
})
```
:::

## Why use the library?

A common question asked is why use `react-spring` with `react-three-fiber` when you can use the `useFrame` hook to update your meshes & objects
Expand Down