Skip to content

docs: Rename validator to inputValidator#7315

Open
abraj wants to merge 1 commit intoTanStack:mainfrom
abraj:patch-3
Open

docs: Rename validator to inputValidator#7315
abraj wants to merge 1 commit intoTanStack:mainfrom
abraj:patch-3

Conversation

@abraj
Copy link
Copy Markdown
Contributor

@abraj abraj commented May 1, 2026

Rename .validator() to .inputValidator() as per the new API for createServerFn()

Summary by CodeRabbit

  • Documentation
    • Updated React framework documentation examples to reflect the current API method naming convention for input validation.

Rename `.validator()` to `.inputValidator()` as per the new API for `createServerFn()`
@github-actions github-actions Bot added the documentation Everything documentation related label May 1, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 1, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 65a560be-c523-4ae8-8f4f-c486057f9087

📥 Commits

Reviewing files that changed from the base of the PR and between d2e8c2a and df946aa.

📒 Files selected for processing (1)
  • docs/start/framework/react/start-vs-nextjs.md

📝 Walkthrough

Walkthrough

The Start framework documentation example for server functions is updated to use the renamed .inputValidator() method instead of .validator(), ensuring the code sample reflects the current API.

Changes

Documentation Update

Layer / File(s) Summary
API Usage Update
docs/start/framework/react/start-vs-nextjs.md
Server function validation example updated from .validator() to .inputValidator() to match renamed API method.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A method's name does change with grace,
From .validator in its place,
To .inputValidator clean and bright,
The docs now gleam with corrected light! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: updating documentation to rename the validator method to inputValidator in a code example.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented May 1, 2026

View your CI Pipeline Execution ↗ for commit df946aa

Command Status Duration Result
nx affected --targets=test:eslint,test:unit,tes... ✅ Succeeded <1s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 2s View ↗

☁️ Nx Cloud last updated this comment at 2026-05-01 23:29:21 UTC

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 1, 2026

More templates

@tanstack/arktype-adapter

npm i https://pkg.pr.new/@tanstack/arktype-adapter@7315

@tanstack/eslint-plugin-router

npm i https://pkg.pr.new/@tanstack/eslint-plugin-router@7315

@tanstack/eslint-plugin-start

npm i https://pkg.pr.new/@tanstack/eslint-plugin-start@7315

@tanstack/history

npm i https://pkg.pr.new/@tanstack/history@7315

@tanstack/nitro-v2-vite-plugin

npm i https://pkg.pr.new/@tanstack/nitro-v2-vite-plugin@7315

@tanstack/react-router

npm i https://pkg.pr.new/@tanstack/react-router@7315

@tanstack/react-router-devtools

npm i https://pkg.pr.new/@tanstack/react-router-devtools@7315

@tanstack/react-router-ssr-query

npm i https://pkg.pr.new/@tanstack/react-router-ssr-query@7315

@tanstack/react-start

npm i https://pkg.pr.new/@tanstack/react-start@7315

@tanstack/react-start-client

npm i https://pkg.pr.new/@tanstack/react-start-client@7315

@tanstack/react-start-rsc

npm i https://pkg.pr.new/@tanstack/react-start-rsc@7315

@tanstack/react-start-server

npm i https://pkg.pr.new/@tanstack/react-start-server@7315

@tanstack/router-cli

npm i https://pkg.pr.new/@tanstack/router-cli@7315

@tanstack/router-core

npm i https://pkg.pr.new/@tanstack/router-core@7315

@tanstack/router-devtools

npm i https://pkg.pr.new/@tanstack/router-devtools@7315

@tanstack/router-devtools-core

npm i https://pkg.pr.new/@tanstack/router-devtools-core@7315

@tanstack/router-generator

npm i https://pkg.pr.new/@tanstack/router-generator@7315

@tanstack/router-plugin

npm i https://pkg.pr.new/@tanstack/router-plugin@7315

@tanstack/router-ssr-query-core

npm i https://pkg.pr.new/@tanstack/router-ssr-query-core@7315

@tanstack/router-utils

npm i https://pkg.pr.new/@tanstack/router-utils@7315

@tanstack/router-vite-plugin

npm i https://pkg.pr.new/@tanstack/router-vite-plugin@7315

@tanstack/solid-router

npm i https://pkg.pr.new/@tanstack/solid-router@7315

@tanstack/solid-router-devtools

npm i https://pkg.pr.new/@tanstack/solid-router-devtools@7315

@tanstack/solid-router-ssr-query

npm i https://pkg.pr.new/@tanstack/solid-router-ssr-query@7315

@tanstack/solid-start

npm i https://pkg.pr.new/@tanstack/solid-start@7315

@tanstack/solid-start-client

npm i https://pkg.pr.new/@tanstack/solid-start-client@7315

@tanstack/solid-start-server

npm i https://pkg.pr.new/@tanstack/solid-start-server@7315

@tanstack/start-client-core

npm i https://pkg.pr.new/@tanstack/start-client-core@7315

@tanstack/start-fn-stubs

npm i https://pkg.pr.new/@tanstack/start-fn-stubs@7315

@tanstack/start-plugin-core

npm i https://pkg.pr.new/@tanstack/start-plugin-core@7315

@tanstack/start-server-core

npm i https://pkg.pr.new/@tanstack/start-server-core@7315

@tanstack/start-static-server-functions

npm i https://pkg.pr.new/@tanstack/start-static-server-functions@7315

@tanstack/start-storage-context

npm i https://pkg.pr.new/@tanstack/start-storage-context@7315

@tanstack/valibot-adapter

npm i https://pkg.pr.new/@tanstack/valibot-adapter@7315

@tanstack/virtual-file-routes

npm i https://pkg.pr.new/@tanstack/virtual-file-routes@7315

@tanstack/vue-router

npm i https://pkg.pr.new/@tanstack/vue-router@7315

@tanstack/vue-router-devtools

npm i https://pkg.pr.new/@tanstack/vue-router-devtools@7315

@tanstack/vue-router-ssr-query

npm i https://pkg.pr.new/@tanstack/vue-router-ssr-query@7315

@tanstack/vue-start

npm i https://pkg.pr.new/@tanstack/vue-start@7315

@tanstack/vue-start-client

npm i https://pkg.pr.new/@tanstack/vue-start-client@7315

@tanstack/vue-start-server

npm i https://pkg.pr.new/@tanstack/vue-start-server@7315

@tanstack/zod-adapter

npm i https://pkg.pr.new/@tanstack/zod-adapter@7315

commit: df946aa

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

Labels

documentation Everything documentation related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant