Skip to content

feat: add @urql/tanstack-react-router#3729

Open
schiller-manuel wants to merge 2 commits intourql-graphql:mainfrom
schiller-manuel:tanstack-integration
Open

feat: add @urql/tanstack-react-router#3729
schiller-manuel wants to merge 2 commits intourql-graphql:mainfrom
schiller-manuel:tanstack-integration

Conversation

@schiller-manuel
Copy link
Copy Markdown

Summary

integration of @tanstack/react-router

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jan 3, 2025

🦋 Changeset detected

Latest commit: cae0d95

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@urql/tanstack-react-router Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment thread .changeset/afraid-colts-sort.md Outdated
Comment thread packages/tanstack-react-router-urql/CHANGELOG.md Outdated
Comment thread packages/tanstack-react-router-urql/jsr.json Outdated
Comment thread packages/tanstack-react-router-urql/jsr.json Outdated
Comment thread packages/tanstack-react-router-urql/package.json Outdated
Comment thread packages/tanstack-react-router-urql/package.json Outdated
},
"main": "dist/urql-tanstack-react-router.js",
"module": "dist/urql-tanstack-react-router.es.js",
"types": "dist/urql-tanstack-react-router.d.ts",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are missing the export mappings, examples in other packages

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i was looking at packages/react-urql/package.json which also does not have export mappings.
Why do we need export mappings here?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

React-urql is a special case due to some old frameworks, vite is a good bundler so we should incorporate export mappings to future proof the package. What we do with react-urql is still a bit of a pickle, especially with regards to react-native

Comment thread packages/tanstack-react-router-urql/package.json Outdated
Comment thread packages/tanstack-react-router-urql/src/useUrqlValue.ts Outdated
@r614
Copy link
Copy Markdown

r614 commented Apr 22, 2025

Hi @JoviDeCroock @schiller-manuel -- just curious about the status of this. Happy to jump in and help get this across finish line

@mikaelkaron
Copy link
Copy Markdown

Also wondering on this. Would love see urql+tanstack-react-router playing along.

@JoviDeCroock
Copy link
Copy Markdown
Collaborator

@schiller-manuel I can finish this if you would like to, the only missing thing is the export mapping

@davedbase
Copy link
Copy Markdown
Contributor

Can we get a @urql/tanstack-solid-router version as well? Wouldn't be much effort to replicate this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants