Does Not Work With React Router v8

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
react, typescript
Domain
frontend

Research direction

Reproduce the error while running or building a project with React Router v8, then trace the useLoaderData usage in remix-client-cache. Done means the package works with React Router v8 without the data-router error during both run and build.

Written by the indexing model from the issue text.

Description

Upon upgrading to react router v8, I get this error when trying to run or build my project:

[useLoaderData must be used within a data router](https://stackoverflow.com/questions/73979282/useloaderdata-must-be-used-within-a-data-router)

Looks like this is due to the usage inside of remix-client-cache

Dominant language
TypeScript
Stars
247
Forks
3
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from code-forge-io/remix-client-cache

All issues in code-forge-io/remix-client-cache

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.