Skip to content

[v3][Web] setImmediate is not defined #4140

Closed
@nandorojo

Description

Description

This bug has appeared over the years many times. The solution has been to use requestAnimationFrame instead of setImmediate on Web.

The regression came from #3970

See: #2622 #152.

Steps to reproduce

Use Reanimated on Next.js.

Snack or a link to a repository

https://stackblitz.com/edit/nextjs-pxczpl?file=pages%2Findex.js,next.config.js,package.json

Reanimated version

3.0.0

React Native version

0.71

Platforms

Web

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

Metadata

Assignees

Labels

Missing reproThis issue need minimum repro scenarioNeeds reviewIssue is ready to be reviewed by a maintainerPlatform: WebThis issue is specific to web

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions