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

feat: updated tanstack router example #236

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

alessandrojcm
Copy link
Contributor

Hi there, was playing around with vinxi + tanstack and noticed the example was a bit out of date so just update it. In line with TanStack/router#1264. The CSS is a bit wacky and the project cannot be run within the Vinxi workspace as PNPM will try to link it with the local vinxi packages whichi use an experimental version of React and hence they cause the example to error out because it'd be use two different versions of React. Let me know if there is anything missing.

Copy link

codesandbox bot commented Mar 5, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

changeset-bot bot commented Mar 5, 2024

⚠️ No Changeset found

Latest commit: b47e3a8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Copy link

vercel bot commented Mar 5, 2024

Someone is attempting to deploy a commit to a Personal Account owned by @nksaraf on Vercel.

@nksaraf first needs to authorize it.

Copy link

vercel bot commented Mar 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vinxi-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 5, 2024 5:12pm

routers: [
{
name: "public",
type: "static",
Copy link
Owner

Choose a reason for hiding this comment

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

i don't think this is correct, the new API is "type", "mode" is old, i think you will have to bump to vinxi": "0.3.9", and make it work with that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, thanks. Should the validation schema not throw if it is being passed a wrong option tho? Or if it is for backwards compatibility reasons to at least print a deprecation warning.

Copy link
Owner

Choose a reason for hiding this comment

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

Yeah I think makes sense to do a deprecation warning, I just don't want to add those while we are still in 0.x.x versions, coz things are changing and can't add notices for everything, the validation should error (but I think for now we accepted both until I remove one) okay yeah maybe then a deprecation warning is a good idea, I think i will remove the option and just error in the validation)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great, yeah erroring sounds good to me

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.

3 participants