Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9d0a3e5

Browse files
committed
Update README and Documentation for New Experimental Hooks
- Added two new experimental hooks: `useSuspenseLocalStorageState` and `useSuspenseSessionStorageState` to the documentation across multiple files.- Updated the count of experimental hooks from 2 to 4 in the README and related markdown files.- Included a note in the hook creation guidelines to run the update-package-list-to-markdown script after adding new hooks.
1 parentcc20269 commit9d0a3e5

File tree

6 files changed

+210
-203
lines changed

6 files changed

+210
-203
lines changed

‎.changeset/pre.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"mode":"pre",
2+
"mode":"exit",
33
"tag":"next",
44
"initialVersions": {
55
"website":"1.1.7",

‎.claude/agents/react-hook-creator.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ When creating a new React hook, you will:
6161
-`name`: Hook name (e.g., "useSuspenseLocalStorageState")
6262
-`description`: Brief description of what the hook does
6363
-`category`: One of the valid categories (see valid categories below)
64+
- Finally run the update-package-list-to-markdown script to update the package list in the README.md file (this script uses the hooks-list.json file to update the package list)
6465

6566
###Valid HOok Categories:
6667

‎README.md‎

Lines changed: 102 additions & 100 deletions
Large diffs are not rendered by default.

‎apps/website/content/docs/index.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Rooks.js
44

55
##Introduction
66

7-
Essential React custom hooks ⚓ to super charge your components!
7+
Collection of awesome react hooks
88

99
##Contributors
1010

‎apps/website/src/pages/list-of-hooks.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,12 @@ sidebar_label: Hooks List
143143
*[useWindowScrollPosition](https://rooks.vercel.app/docs/hooks/useWindowScrollPosition) - A React hook to get the scroll position of the window
144144
*[useWindowSize](https://rooks.vercel.app/docs/hooks/useWindowSize) - Window size hook for React.
145145

146-
<h3align="center">🧪 Experimental Hooks -2 hooks</h3>
146+
<h3align="center">🧪 Experimental Hooks -4 hooks</h3>
147147

148148
*[useSuspenseNavigatorBattery](https://rooks.vercel.app/docs/hooks/useSuspenseNavigatorBattery) - Suspense-enabled hook for getting battery status information from Navigator Battery API
149149
*[useSuspenseNavigatorUserAgentData](https://rooks.vercel.app/docs/hooks/useSuspenseNavigatorUserAgentData) - Suspense-enabled hook for getting high entropy values from Navigator User Agent Data API
150+
*[useSuspenseLocalStorageState](https://rooks.vercel.app/docs/hooks/useSuspenseLocalStorageState) - Suspense-enabled hook for localStorage state management with cross-tab synchronization
151+
*[useSuspenseSessionStorageState](https://rooks.vercel.app/docs/hooks/useSuspenseSessionStorageState) - Suspense-enabled hook for sessionStorage state management with proper serialization
150152

151153
<palign="center"><em>⚠️ Experimental hooks may be removed or significantly changed in any release without notice. Use with caution in production.</em></p>
152154

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp