Commit Graph

7075 Commits

Author SHA1 Message Date
lauren
76f84a38b2 Merge 8d1b0d7abc into sapling-pr-archive-poteto 2025-10-07 16:19:30 -04:00
Lauren Tan
8d1b0d7abc Upgrade to stable react compiler
Upgrade to latest
2025-10-07 13:18:43 -07:00
lauren
e51c785894 Merge 93c1768569 into sapling-pr-archive-poteto 2025-10-07 16:11:37 -04:00
Lauren Tan
93c1768569 Upgrade to stable react compiler
Upgrade to latest
2025-10-07 13:11:28 -07:00
Matt Carroll
d9e35047ab Add React Foundation blog post (#8057) 2025-10-07 10:09:43 -07:00
Sebastian "Sebbie" Silbermann
249535378a Bump ViewTransition and Fragment ref docs to canary (#8048) 2025-10-07 08:08:39 -07:00
Sebastian "Sebbie" Silbermann
28e9bd9fa2 Document React's profiling build (#8054) 2025-10-06 13:47:38 -04:00
lauren
11cb6b5915 Clarify eslint-plugin-react-hooks configuration details (#8052)
Updated description of eslint-plugin-react-hooks configuration and preset.
2025-10-03 21:23:21 -04:00
lauren
7b8612ec41 Update eslint-plugin-react-hooks version reference (#8051)
Updates all mentions of eslint-plugin-react-hooks rc and 6.1.0 to refer to the new 6.1.1 which has important bugfixes.
2025-10-03 19:03:28 -04:00
Lauren Tan
2086285b8e merge commit for archive created by Sapling 2025-10-03 18:58:40 -04:00
Lauren Tan
01a872397b Update eslint-plugin-react-hooks version reference
Updates all mentions of eslint-plugin-react-hooks rc and 6.1.0 to refer to the new 6.1.1 which has important bugfixes.
2025-10-03 18:58:30 -04:00
Jack Pope
ae584af4da Add experimental docs for Fragment refs (#8010)
* Add experimental docs for Fragment refs

* Update wording

* Address feedback
2025-10-03 10:35:59 -04:00
Sophie Alpert
775d895c98 fix typo 2025-10-03 03:33:02 -07:00
Sebastian "Sebbie" Silbermann
996ef72c1a Prerender can be aborted in stable (#8039) 2025-10-02 19:24:24 +02:00
Rick Hanlon
07b7a5d999 s/19.3/19.2 2025-10-02 10:27:17 -04:00
Ricky
42037e2dfd Few cleanups for 19.2 (#8046) 2025-10-02 10:06:30 -04:00
dan
9850724eb4 Upgrade sandboxes to 19.2 (#8037)
* Use stable release in demos with HTML output

* Fix Activity sandboxes (#8035)

* Fix Activity sandboxes

* hacky fix

* Revert "Fix Activity sandboxes (#8035)"

This reverts commit f9fd07ca59.

* Bump to 19.2

* cleanup rest of sandpacks

* Pin deps

* Add back package.json with third-party deps

* "^" should be fixed now

* add back package.json for more toastify deps

* fuggin whitespace

* more fuggin whitespace

* fml like fr fr

---------

Co-authored-by: Sebastian Sebbie Silbermann <sebastian.silbermann@vercel.com>
Co-authored-by: Ricky <rickhanlonii@gmail.com>
Co-authored-by: Rick Hanlon <rickhanlonii@meta.com>
2025-10-02 09:58:19 -04:00
Sebastian "Sebbie" Silbermann
37f862a64b Latest release is 19.2 (#8040) 2025-10-02 14:02:23 +02:00
Ricky
f9fd07ca59 Fix Activity sandboxes (#8035)
* Fix Activity sandboxes

* hacky fix
2025-10-01 19:23:34 -04:00
Jack Pope
0a803f61d8 Update eslint-plugin-react-hooks config docs (#8030)
We're updating eslint-plugin-react-hooks with support for useEffectEvent usage and updated configuration options for applying the useEffectEvent and other effect rules to custom effect hooks.

This adds the documentation for the config syntax and adds mention to the useEffectEvent reference page that the linter should be used to ensure proper usage of Effect Events.
2025-10-01 17:55:59 -04:00
Ricky
c3d7560005 Blog post for React 19.2 (#8028)
* wip

* feedback and rm canary stuff

* tweak

* fix json

* more canary stuff

* fix link

* update dates

* update meta description

* Expand performance track section

* adjust linter note

* edit perf tracks down

* edit perf tracks down more

* tweak note

* tweak useEffectEvent

* formatting

* tweaks

* ppr

* rm canary stuff

* fix json

* fix json

* tweaks

* linter note

* nit

* nit

* link

* nit

* ppr

* missing await

* add lint v6

* fix link

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2025-10-01 17:42:52 -04:00
Sebastian "Sebbie" Silbermann
dc86f88afe Overview for React Server Performance tracks (#8031) 2025-10-01 21:28:18 +02:00
dan
10e5ad50cf Conditionally deriving state is allowed (#8033) 2025-10-01 20:11:07 +01:00
Ricky
aba6b86772 Docs for partial-prerendering APIs (#7869)
* Init PPR docs

* Overhaul

* Apply suggestions from code review

---------

Co-authored-by: Sebastian Sebbie Silbermann <sebastian.silbermann@vercel.com>
2025-10-01 13:48:16 -04:00
Ruslan Lesiutin
9fddeca99b docs: initial docs for Performance tracks (#7938)
* docs: scaffold docs structure for Performance tracks

* docs: initial draft of Tracks section

* refactor: moved to reference root section and added to the sidebar

* chore: updated to canary and minor changes
2025-10-01 13:34:56 +01:00
Sebastian "Sebbie" Silbermann
3f0235be3d Docs for cacheSignal (#8023)
* Docs for `cacheSignal`

* Apply suggestion from review

Co-authored-by: Sebastian Markbåge <sebastian@calyptus.eu>

* Apply suggestion from review

Co-authored-by: Sebastian Markbåge <sebastian@calyptus.eu>

* Update src/content/reference/react/cacheSignal.md

---------

Co-authored-by: Sebastian Markbåge <sebastian@calyptus.eu>
2025-10-01 08:20:52 -04:00
Karl Horky
c60922ff73 Fix incorrect negative in use-memo intro (#8027) 2025-09-30 21:01:55 -04:00
Jack Pope
49c2d26722 Update useEffectEvent docs for canary (#8025)
* Update useEffectEvent docs for canary

* Clean up prefixed imports

* Fix import

* Update blog post link
2025-09-28 11:36:27 -04:00
Radoš Milićev
1b20061b10 Fix value wrongly formatted as code in useDeferredValue.md (#8024) 2025-09-26 18:15:37 +02:00
Eugene Choi
790625fd22 Fix ViewTransition examples (#7999)
* Fix view transition example

* Empty commit

* Fix fullscreen example
2025-09-23 17:25:52 -04:00
Radoš Milićev
170e5b904a Remove unnecessary spaces from useCallback.md (#8006) 2025-09-23 09:58:55 +02:00
Ricky
c8211fc21e Add RC badge to RC-only lint rules (#8005) 2025-09-22 10:18:10 -04:00
lauren
366b5fbdad Add new eslint rule reference docs (#7986)
Adds new docs for our new eslint rules.
2025-09-19 16:19:48 -04:00
Lauren Tan
998610b31f merge commit for archive created by Sapling 2025-09-19 15:56:21 -04:00
Lauren Tan
82adeffb37 Add new eslint rule reference docs
Adds new docs for our new eslint rules.
2025-09-19 15:55:58 -04:00
lauren
165069cf0e Merge bd71e7fdd1 into sapling-pr-archive-poteto 2025-09-19 12:20:25 -04:00
Lauren Tan
bd71e7fdd1 Add new eslint rule reference docs
Adds new docs for our new eslint rules.
2025-09-19 12:20:19 -04:00
lauren
c15e20f811 Install eslint-local-rules as postinstall (#7993)
For local dev and CI we want to have the eslint-local-rules running, so let's make sure both have their dependencies installed. We don't use a monorepo setup here, which is why they're currently setup as a two completely independent yarn workspaces.
2025-09-19 11:19:36 -04:00
lauren
730d045c71 Restore lint corrections from #7989 (#7997)
* Ignore braces when building Sandpack file map

Previously, `createFileMap` split the MDX meta string on spaces and assumed the first token was the filename. Once we prefixed code fences with `{expectedErrors: ...}`, it would incorrectly parse the meta and crash.

This PR updates createFileMap to skip tokens in the meta containing a start and end brace pair (using a stack to ensure we close on the correct brace) while tokenizing the meta string as expected.

Test plan: pages reported in #7994 no longer crash on the next PR

Closes #7994

* Restore lint corrections from #7989

Reverts the revert now that we've fixed the bug. These pages should no longer crash:

https://react-dev-git-pr7997-fbopensource.vercel.app/learn/referencing-values-with-refs
https://react-dev-git-pr7997-fbopensource.vercel.app/learn/synchronizing-with-effects
https://react-dev-git-pr7997-fbopensource.vercel.app/learn/separating-events-from-effects
https://react-dev-git-pr7997-fbopensource.vercel.app/learn/removing-effect-dependencies
https://react-dev-git-pr7997-fbopensource.vercel.app/learn/you-might-not-need-an-effect
2025-09-18 19:18:19 -04:00
lauren
f369f3efdf Ignore braces when building Sandpack file map (#7996)
Previously, `createFileMap` split the MDX meta string on spaces and assumed the first token was the filename. Once we prefixed code fences with `{expectedErrors: ...}`, it would incorrectly parse the meta and crash.

This PR updates createFileMap to skip tokens in the meta containing a start and end brace pair (using a stack to ensure we close on the correct brace) while tokenizing the meta string as expected.

Test plan: pages reported in #7994 no longer crash on the next PR

Closes #7994
2025-09-18 19:18:09 -04:00
Lauren Tan
decea4612c merge commit for archive created by Sapling 2025-09-18 19:07:14 -04:00
Lauren Tan
db77a16d20 Restore lint corrections from #7989
Reverts the revert now that we've fixed the bug. These pages should no longer crash:

https://react-dev-git-pr7997-fbopensource.vercel.app/learn/referencing-values-with-refs
https://react-dev-git-pr7997-fbopensource.vercel.app/learn/synchronizing-with-effects
https://react-dev-git-pr7997-fbopensource.vercel.app/learn/separating-events-from-effects
https://react-dev-git-pr7997-fbopensource.vercel.app/learn/removing-effect-dependencies
https://react-dev-git-pr7997-fbopensource.vercel.app/learn/you-might-not-need-an-effect
2025-09-18 19:07:06 -04:00
Lauren Tan
e41141f446 Ignore braces when building Sandpack file map
Previously, `createFileMap` split the MDX meta string on spaces and assumed the first token was the filename. Once we prefixed code fences with `{expectedErrors: ...}`, it would incorrectly parse the meta and crash.

This PR updates createFileMap to skip tokens in the meta containing a start and end brace pair (using a stack to ensure we close on the correct brace) while tokenizing the meta string as expected.

Test plan: pages reported in #7994 no longer crash on the next PR

Closes #7994
2025-09-18 19:07:06 -04:00
Lauren Tan
1d1272a7e1 merge commit for archive created by Sapling 2025-09-18 19:03:41 -04:00
Lauren Tan
9b611e568d Restore lint corrections from #7989
Reverts the revert now that we've fixed the bug. These pages should no longer crash:

https://react-dev-git-pr7997-fbopensource.vercel.app/learn/referencing-values-with-refs
https://react-dev-git-pr7997-fbopensource.vercel.app/learn/synchronizing-with-effects
https://react-dev-git-pr7997-fbopensource.vercel.app/learn/separating-events-from-effects
https://react-dev-git-pr7997-fbopensource.vercel.app/learn/removing-effect-dependencies
https://react-dev-git-pr7997-fbopensource.vercel.app/learn/you-might-not-need-an-effect
2025-09-18 19:03:33 -04:00
Lauren Tan
a53abd2151 Ignore braces when building Sandpack file map
Previously, `createFileMap` split the MDX meta string on spaces and assumed the first token was the filename. Once we prefixed code fences with `{expectedErrors: ...}`, it would incorrectly parse the meta and crash.

This PR updates createFileMap to skip tokens in the meta containing a start and end brace pair (using a stack to ensure we close on the correct brace) while tokenizing the meta string as expected.

Test plan: pages reported in #7994 no longer crash on the next PR

Closes #7994
2025-09-18 19:03:33 -04:00
lauren
087b8d4a83 Merge 2cb3cbcaa5 into sapling-pr-archive-poteto 2025-09-18 18:51:13 -04:00
Lauren Tan
2cb3cbcaa5 Restore lint corrections from #7989
Reverts the revert now that we've fixed the bug. These pages should no longer crash:

/learn/referencing-values-with-refs
/learn/synchronizing-with-effects
/learn/separating-events-from-effects
/learn/removing-effect-dependencies
2025-09-18 18:51:08 -04:00
Lauren Tan
5f46bfb0e6 Ignore braces when building Sandpack file map
Previously, `createFileMap` split the MDX meta string on spaces and assumed the first token was the filename. Once we prefixed code fences with `{expectedErrors: …}`, it would incorrectly parse the meta and crash.

This PR updates createFileMap to skip tokens in the meta containing a start and end brace pair (using a stack to ensure we close on the correct brace) while tokenizing the meta string as expected.

I also added a fallback that was previously not handled if the filepath was undefined.

Test plan: pages reported in #7994 no longer crash on the next PR

Closes #7994
2025-09-18 18:51:08 -04:00
Lauren Tan
21daaa9f88 merge commit for archive created by Sapling 2025-09-18 18:50:14 -04:00