Skip to content

Commit

Permalink
Merge pull request #79 from taro-28/update-readme-3
Browse files Browse the repository at this point in the history
Fix broken links in README
  • Loading branch information
taro-28 authored Sep 8, 2024
2 parents 6eab6b1 + 579092d commit f53a8f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ The `useTableSearchParams` hook primarily does the following two things:

You can customize a query parameter name.

- [demo](https://tanstack-table-search-paramsexample-git-56132d-taro28s-projects.vercel.app/custom-param-name)
- [demo](https://tanstack-table-search-params-next-pages-router-taro28s-projects.vercel.app/custom-param-name)
- [code](https://github.com/taro-28/tanstack-table-search-params/tree/main/examples/next-pages-router/src/pages/custom-param-name.tsx)

```tsx
Expand All @@ -99,7 +99,7 @@ You can customize the default value of a query parameter.

The "default value" is the value that is used as the `state` when the query parameter is not present.

- [demo](https://tanstack-table-search-paramsexample-git-56132d-taro28s-projects.vercel.app/custom-default-value)
- [demo](https://tanstack-table-search-params-next-pages-router-taro28s-projects.vercel.app/custom-default-value)
- [code](https://github.com/taro-28/tanstack-table-search-params/tree/main/examples/next-pages-router/src/pages/custom-default-value.tsx)

```tsx
Expand Down Expand Up @@ -129,7 +129,7 @@ useEffect(() => {

You can customize the encoder/decoder for the query parameter.

- [demo](https://tanstack-table-search-paramsexample-git-56132d-taro28s-projects.vercel.app/custom-encoder-decoder)
- [demo](https://tanstack-table-search-params-next-pages-router-taro28s-projects.vercel.app/custom-encoder-decoder)
- [code](https://github.com/taro-28/tanstack-table-search-params/tree/main/examples/next-pages-router/src/pages/custom-encoder-decoder.tsx)

```tsx
Expand Down Expand Up @@ -196,11 +196,11 @@ const stateAndOnChanges = useTableSearchParams(router, {
});
```

<h2 id="custom-encoder-decoder">⏱️ Debounce</h2>
<h2 id="debounce">⏱️ Debounce</h2>

You can debounce the reflection of state changes in the query parameters.

- [demo](https://tanstack-table-search-paramsexample-git-56132d-taro28s-projects.vercel.app/debounce)
- [demo](https://tanstack-table-search-params-next-pages-router-taro28s-projects.vercel.app/debounce)
- [code](https://github.com/taro-28/tanstack-table-search-params/tree/main/examples/next-pages-router/src/pages/debounce.tsx)

```tsx
Expand Down
10 changes: 5 additions & 5 deletions packages/tanstack-table-search-params/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ The `useTableSearchParams` hook primarily does the following two things:

You can customize a query parameter name.

- [demo](https://tanstack-table-search-paramsexample-git-56132d-taro28s-projects.vercel.app/custom-param-name)
- [demo](https://tanstack-table-search-params-next-pages-router-taro28s-projects.vercel.app/custom-param-name)
- [code](https://github.com/taro-28/tanstack-table-search-params/tree/main/examples/next-pages-router/src/pages/custom-param-name.tsx)

```tsx
Expand All @@ -99,7 +99,7 @@ You can customize the default value of a query parameter.

The "default value" is the value that is used as the `state` when the query parameter is not present.

- [demo](https://tanstack-table-search-paramsexample-git-56132d-taro28s-projects.vercel.app/custom-default-value)
- [demo](https://tanstack-table-search-params-next-pages-router-taro28s-projects.vercel.app/custom-default-value)
- [code](https://github.com/taro-28/tanstack-table-search-params/tree/main/examples/next-pages-router/src/pages/custom-default-value.tsx)

```tsx
Expand Down Expand Up @@ -129,7 +129,7 @@ useEffect(() => {

You can customize the encoder/decoder for the query parameter.

- [demo](https://tanstack-table-search-paramsexample-git-56132d-taro28s-projects.vercel.app/custom-encoder-decoder)
- [demo](https://tanstack-table-search-params-next-pages-router-taro28s-projects.vercel.app/custom-encoder-decoder)
- [code](https://github.com/taro-28/tanstack-table-search-params/tree/main/examples/next-pages-router/src/pages/custom-encoder-decoder.tsx)

```tsx
Expand Down Expand Up @@ -196,11 +196,11 @@ const stateAndOnChanges = useTableSearchParams(router, {
});
```

<h2 id="custom-encoder-decoder">⏱️ Debounce</h2>
<h2 id="debounce">⏱️ Debounce</h2>

You can debounce the reflection of state changes in the query parameters.

- [demo](https://tanstack-table-search-paramsexample-git-56132d-taro28s-projects.vercel.app/debounce)
- [demo](https://tanstack-table-search-params-next-pages-router-taro28s-projects.vercel.app/debounce)
- [code](https://github.com/taro-28/tanstack-table-search-params/tree/main/examples/next-pages-router/src/pages/debounce.tsx)

```tsx
Expand Down

0 comments on commit f53a8f9

Please sign in to comment.