Skip to content

Add support for Remix v2.0.0 #228

@jgentes

Description

@jgentes

Describe the bug

Remix v2 has deprecated useTransition in favor of useNavigation as documented here: https://remix.run/docs/en/2.0.0/start/v2#usetransition

After upgrading to Remix v2, the following error occurs:

X [ERROR] No matching export in "node_modules/@remix-run/react/dist/esm/index.js" for import "useTransition"

    node_modules/remix-utils/browser/react/use-global-pending-state.js:1:9:
      1 │ import { useTransition, useFetchers } from "@remix-run/react";

Your Example Website or App

https://github.com/jgentes/mixpoint

Steps to Reproduce the Bug or Issue

Go to package.json, update all remix dependencies to "2.0.0" and run "yarn", then "yarn dev"

Expected behavior

Probably ought to update remix-utils to the latest version of Remix

Screenshots or Videos

No response

Platform

Windows, edge

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions