Skip to content

feat: Add settings in tanstack start - #768

Open
aXenDeveloper wants to merge 3 commits into
feat/tanstack_start_8from
feat/tanstack_start_9
Open

feat: Add settings in tanstack start#768
aXenDeveloper wants to merge 3 commits into
feat/tanstack_start_8from
feat/tanstack_start_9

Conversation

@aXenDeveloper

Copy link
Copy Markdown
Owner

Improving Documentation

Description

What?

Why?

@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vitnode-docs Ready Ready Preview Aug 29, 2026 6:51am

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3f37ce58bc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

* Exported as the invalidation target too - there is exactly one entry, so the
* key and the family are the same value.
*/
export const DEVICES_QUERY_KEY = ["devices", "me"] as const;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Invalidate device data when the session changes

When two users sign in sequentially in the same browser tab, this user-independent key retains the first user's device list after sign-out because useSignOutAction only invalidates the session query. On the second user's visit, the route loader uses ensureQueryData, which accepts the existing entry, while the configured refetchOnMount: false prevents the component from correcting it; the page therefore exposes the previous user's device names, IP addresses, and timestamps. Remove this identity-scoped entry on sign-out/authentication changes or include the authenticated user identity in its key.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 50f5bf134e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +70 to +74
name: z
.string({ message: fieldRequired })
.min(3, nameMinLength)
.max(32, nameMaxLength)
.default(""),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Validate usernames before invoking the server function

When a visitor enters a username containing an API-forbidden character or doubled spaces (for example, O'Connor or John Doe), this form schema accepts it, but the new signUpInputSchema rejects it in the createServerFn validator. That rejection occurs before signUpOnApi can return the closed invalid result, and useSignUpForm does not catch it, so the TanStack registration form submits successfully from the UI and then provides neither a field error nor the intended failure toast. Apply the API's username refinement in this form schema so the error remains actionable.

Useful? React with 👍 / 👎.

Comment on lines +144 to +146
const config = await context.queryClient.ensureQueryData(
middlewareConfigQueryOptions(),
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Refetch stale configuration before deciding recovery availability

When this tab previously cached middleware configuration—especially UNKNOWN_MIDDLEWARE_CONFIG during a transient outage—ensureQueryData returns that cached value without checking whether it is stale. Since VitNode also disables refetchOnMount, retrying this route after the API recovers can continue throwing PasswordRecoveryUnknownError indefinitely while the previous auth page keeps the query alive; similarly, enabling email recovery on a deployment can leave this route returning 404 past the configured five-minute stale time. Read through fetchQuery here and make unknown fallback entries immediately retryable.

Useful? React with 👍 / 👎.

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

Labels

💡 Feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant