René's URL Explorer Experiment


Title: Add React 19 hooks by i-am-the-slime · Pull Request #80 · purescript-react/purescript-react-basic-hooks · GitHub

Open Graph Title: Add React 19 hooks by i-am-the-slime · Pull Request #80 · purescript-react/purescript-react-basic-hooks

X Title: Add React 19 hooks by i-am-the-slime · Pull Request #80 · purescript-react/purescript-react-basic-hooks

Description: This PR adds bindings for the new React 19 hooks: useOptimistic, useActionState, and useEffectEvent. useOptimistic lets you show optimistic updates whilst an async action is running, and automatically reverts when the action completes. useActionState is useful for managing form submissions with built-in pending states. useEffectEvent extracts non-reactive logic from effects so you can access the latest props/state without causing the effect to re-run. I've also added Aff variants of useActionState (useAffActionState) to match the library's existing pattern with useAff and useAffReducer. Both the regular and Aff versions support an optional permalink parameter for progressive enhancement. This bumps React to 19.0.0 and updates the testing library accordingly. All existing tests still pass.

Open Graph Description: This PR adds bindings for the new React 19 hooks: useOptimistic, useActionState, and useEffectEvent. useOptimistic lets you show optimistic updates whilst an async action is running, and automatica...

X Description: This PR adds bindings for the new React 19 hooks: useOptimistic, useActionState, and useEffectEvent. useOptimistic lets you show optimistic updates whilst an async action is running, and automatica...

Opengraph URL: https://github.com/purescript-react/purescript-react-basic-hooks/pull/80

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:136979f3-c225-e4d4-22ad-6a76e688c3cd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB02C:F6058:167D7A0:1CF174B:6992539D
html-safe-nonce88bf829e2d44c456c996c9a5bd4a11426b247025f2b5641e40612efcec48a092
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDJDOkY2MDU4OjE2N0Q3QTA6MUNGMTc0Qjo2OTkyNTM5RCIsInZpc2l0b3JfaWQiOiI4NTI1NDc4NDg2MjU2ODAwNjY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc276e8db78061ceca3057eadc811616d273a1b1d659ae76b528f3720d287aeea
hovercard-subject-tagpull_request:3233528857
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files
twitter:imagehttps://avatars.githubusercontent.com/u/1588055?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1588055?s=400&v=4
og:image:altThis PR adds bindings for the new React 19 hooks: useOptimistic, useActionState, and useEffectEvent. useOptimistic lets you show optimistic updates whilst an async action is running, and automatica...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/purescript-react/purescript-react-basic-hooks git https://github.com/purescript-react/purescript-react-basic-hooks.git
octolytics-dimension-user_id132099504
octolytics-dimension-user_loginpurescript-react
octolytics-dimension-repository_id165808163
octolytics-dimension-repository_nwopurescript-react/purescript-react-basic-hooks
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id165808163
octolytics-dimension-repository_network_root_nwopurescript-react/purescript-react-basic-hooks
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-react%2Fpurescript-react-basic-hooks%2Fpull%2F80%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-react%2Fpurescript-react-basic-hooks%2Fpull%2F80%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=purescript-react%2Fpurescript-react-basic-hooks
Reloadhttps://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files
Reloadhttps://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files
Reloadhttps://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files
purescript-react https://github.com/purescript-react
purescript-react-basic-hookshttps://github.com/purescript-react/purescript-react-basic-hooks
Notifications https://github.com/login?return_to=%2Fpurescript-react%2Fpurescript-react-basic-hooks
Fork 32 https://github.com/login?return_to=%2Fpurescript-react%2Fpurescript-react-basic-hooks
Star 202 https://github.com/login?return_to=%2Fpurescript-react%2Fpurescript-react-basic-hooks
Code https://github.com/purescript-react/purescript-react-basic-hooks
Issues 6 https://github.com/purescript-react/purescript-react-basic-hooks/issues
Pull requests 6 https://github.com/purescript-react/purescript-react-basic-hooks/pulls
Discussions https://github.com/purescript-react/purescript-react-basic-hooks/discussions
Actions https://github.com/purescript-react/purescript-react-basic-hooks/actions
Projects 0 https://github.com/purescript-react/purescript-react-basic-hooks/projects
Security 0 https://github.com/purescript-react/purescript-react-basic-hooks/security
Insights https://github.com/purescript-react/purescript-react-basic-hooks/pulse
Code https://github.com/purescript-react/purescript-react-basic-hooks
Issues https://github.com/purescript-react/purescript-react-basic-hooks/issues
Pull requests https://github.com/purescript-react/purescript-react-basic-hooks/pulls
Discussions https://github.com/purescript-react/purescript-react-basic-hooks/discussions
Actions https://github.com/purescript-react/purescript-react-basic-hooks/actions
Projects https://github.com/purescript-react/purescript-react-basic-hooks/projects
Security https://github.com/purescript-react/purescript-react-basic-hooks/security
Insights https://github.com/purescript-react/purescript-react-basic-hooks/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpurescript-react%2Fpurescript-react-basic-hooks%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpurescript-react%2Fpurescript-react-basic-hooks%2Fissues%2Fnew%2Fchoose
i-am-the-slimehttps://github.com/i-am-the-slime
mainhttps://github.com/purescript-react/purescript-react-basic-hooks/tree/main
react-19-hookshttps://github.com/purescript-react/purescript-react-basic-hooks/tree/react-19-hooks
Conversation 0 https://github.com/purescript-react/purescript-react-basic-hooks/pull/80
Commits 2 https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/commits
Checks 1 https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/checks
Files changed https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files
Please reload this pagehttps://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files
Add React 19 hooks https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files#top
Show all changes 2 commits https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files
92afcaa Add React 19 hooks i-am-the-slime Feb 1, 2026 https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/commits/92afcaad27304cf0d1838498c192dadd782e5359
71fec93 Update GitHub Actions to v4 i-am-the-slime Feb 1, 2026 https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/commits/71fec93ebb10dc88c7d3c909bd62e7d36b0895fe
Clear filters https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files
Please reload this pagehttps://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files
Please reload this pagehttps://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files
node.js.yml https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files#diff-014228303dff9a1af15f4bbd18401f906380129b10ae2a2c62f8b8be592ff88e
README.md https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
package-lock.json https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519
package.json https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
Hooks.js https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files#diff-464804a483e57db05beb9217f3fbd2014e3a71aba750343cddad1a6794159e31
Hooks.purs https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files#diff-780e295f6082c87edc849e396bd9006cbed47bd9bfa06ab98a8fc4120c642a3b
Aff.js https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files#diff-e7722ccb8dba148e7e941b1fa401108b4a3d77fdf32c1ed532cf6e84ea300250
Aff.purs https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files#diff-99ff3d3cb32493eefdfd95394de6c490e16af4059e3b563e51e6c1be474026b9
React19HooksSpec.purs https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files#diff-0b94646b3c744130207ba10418697f19358ad6276b30be9e95fffd0ea4726a3f
.github/workflows/node.js.ymlhttps://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files#diff-014228303dff9a1af15f4bbd18401f906380129b10ae2a2c62f8b8be592ff88e
View file https://github.com/purescript-react/purescript-react-basic-hooks/blob/71fec93ebb10dc88c7d3c909bd62e7d36b0895fe/.github/workflows/node.js.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/{{ revealButtonHref }}
https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files#diff-014228303dff9a1af15f4bbd18401f906380129b10ae2a2c62f8b8be592ff88e
https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files#diff-014228303dff9a1af15f4bbd18401f906380129b10ae2a2c62f8b8be592ff88e
README.mdhttps://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/purescript-react/purescript-react-basic-hooks/blob/71fec93ebb10dc88c7d3c909bd62e7d36b0895fe/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/{{ revealButtonHref }}
https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
Please reload this pagehttps://github.com/purescript-react/purescript-react-basic-hooks/pull/80/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.