table icon indicating copy to clipboard operation
table copied to clipboard

Fix syntax error in pagination example

Open basarozcan opened this issue 2 months ago โ€ข 2 comments

Adding missing ) character.

๐ŸŽฏ Changes

Add missing ) character on example while define pagination state in vue

โœ… Checklist

  • [x] I have followed the steps in the Contributing guide.
  • [] I have tested this code locally with pnpm test:pr.

๐Ÿš€ Release Impact

  • [] This change affects published code, and I have generated a changeset.
  • [x] This change is docs/CI/dev-only (no release).

Summary by CodeRabbit

  • Documentation
    • Corrected a syntax error in the Vue table state guide, fixing a code example in the Controlled State section to ensure accuracy and usability.

basarozcan avatar Nov 07 '25 06:11 basarozcan

โš ๏ธ No Changeset found

Latest commit: a0a9c5d04faae4cc5b189e264baf372ead22fd7b

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

changeset-bot[bot] avatar Nov 07 '25 06:11 changeset-bot[bot]

Walkthrough

Documentation fix correcting a syntax error in a Vue table state example. A missing closing parenthesis in the pagination ref initialization line is added to resolve invalid code syntax.

Changes

Cohort / File(s) Change Summary
Documentation syntax correction
docs/framework/vue/guide/table-state.md
Fixed missing closing parenthesis in controlled state example's pagination ref initialization from ref({ pageIndex: 0, pageSize: 15 } to ref({ pageIndex: 0, pageSize: 15 })

Estimated code review effort

๐ŸŽฏ 1 (Trivial) | โฑ๏ธ ~2 minutes

Poem

A wayward parenthesis had gone astray,
Lost in the Vue code that guides the way,
But hop and a fix, it's now complete,
Documentation syntax, so neat and sweet! ๐Ÿฐโœจ

Pre-merge checks and finishing touches

โœ… Passed checks (3 passed)
Check name Status Explanation
Title check โœ… Passed The title clearly and concisely describes the main change: fixing a syntax error in a pagination example by adding a missing closing parenthesis.
Description check โœ… Passed The description follows the required template with all major sections completed. The Changes section explains the modification, the Checklist shows appropriate selections, and Release Impact correctly identifies this as docs-only.
Docstring Coverage โœ… Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
โœจ Finishing touches
๐Ÿงช Generate unit tests (beta)
  • [ ] Create PR with unit tests
  • [ ] Post copyable unit tests in a comment

๐Ÿ“œ Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 02c203afed5865cfec0aa614de9f2861645d6ff9 and a0a9c5d04faae4cc5b189e264baf372ead22fd7b.

๐Ÿ“’ Files selected for processing (1)
  • docs/framework/vue/guide/table-state.md (1 hunks)
๐Ÿ”‡ Additional comments (1)
docs/framework/vue/guide/table-state.md (1)

117-117: Syntax fix looks good.

The missing closing parenthesis has been properly added to the ref() initialization, allowing developers to copy and run this example without syntax errors.


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

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

coderabbitai[bot] avatar Nov 07 '25 06:11 coderabbitai[bot]