gaearon Github contribution chart
gaearon Github Stats
gaearon Most Used Languages

Activity

25 Sep 2022

Gaearon

Optimize output

Pushed On 25 Sep 2022 at 05:07:49
Merge

Gaearon

[Beta] Highlight code blocks at build

Builds on https://github.com/reactjs/reactjs.org/pull/5110.

This moves the syntax highlighting for static code blocks entirely out of the rendering path. In the future this could be a Server Component instead, but for now I'm moving it to MDX preprocessing stage.

Long page before (6x CPU):

Long page after (6x CPU):

Forked On 25 Sep 2022 at 04:57:09

Gaearon

It's all static here, so this doesn't matter. There's no CodeMirror anymore
On 25 Sep 2022 at 04:57:09

Gaearon

[Beta] Highlight code blocks at build

Builds on https://github.com/reactjs/reactjs.org/pull/5110.

This moves the syntax highlighting for static code blocks entirely out of the rendering path. In the future this could be a Server Component instead, but for now I'm moving it to MDX preprocessing stage.

Long page before (6x CPU):

Long page after (6x CPU):

Merged On 25 Sep 2022 at 04:57:09

Gaearon

Commented On 25 Sep 2022 at 04:57:09

Gaearon

Fix build

Pushed On 25 Sep 2022 at 04:56:38

Gaearon

Fix disappearing CSS

Pushed On 25 Sep 2022 at 04:54:42

Gaearon

[Beta] Highlight code blocks at build

Created On 25 Sep 2022 at 04:34:33
Create Branch
Gaearon In reactjs/reactjs.org Create Branchsuper-static-hilite

Gaearon

The React documentation website

On 25 Sep 2022 at 04:33:43

Gaearon

[Beta] Fix CSS for long highlight lines

Pushed On 25 Sep 2022 at 04:17:05

Gaearon

[Beta] Fully SSR CodeBlock (#5110)

Pushed On 25 Sep 2022 at 03:18:50

Gaearon

[Beta] Fully SSR CodeBlock

Created On 25 Sep 2022 at 03:18:46

Gaearon

[Beta] Fully SSR CodeBlock

Pushed On 25 Sep 2022 at 03:25:31

Gaearon

[Beta] Fully SSR CodeBlock

Created On 25 Sep 2022 at 03:22:13
Create Branch
Gaearon In reactjs/reactjs.org Create Branchstatic-hilite

Gaearon

The React documentation website

On 25 Sep 2022 at 03:17:59
Issue Comment

Gaearon

[Fizz] experimental_useEvent

#25229 for Fizz.

The shim throws if you try to call it during SSR. It is shared between all event functions so that we can remove them from SSR with a compiler.

Forked On 24 Sep 2022 at 11:57:25

Gaearon

Is it worth returning a new function then for simplicity?

Commented On 24 Sep 2022 at 11:57:25

Gaearon

[Fizz] useEvent

Pushed On 24 Sep 2022 at 11:56:45

Gaearon

Added RenderATL 2023 (#5108)

Added info about RenderATL 2023

Pushed On 24 Sep 2022 at 11:48:28

Gaearon

Added RenderATL 2023

Created On 24 Sep 2022 at 11:48:25
Pull Request

Gaearon

[Fizz] experimental_useEvent

Created On 24 Sep 2022 at 11:46:45
Create Branch
Gaearon In facebook/react Create Branchfizz-useevent

Gaearon

A declarative, efficient, and flexible JavaScript library for building user interfaces.

On 24 Sep 2022 at 11:44:39

Gaearon

[Beta] Upgrade to MDX 2 (#5107)

  • [Beta] MDX 2

  • Fix up old pages

Pushed On 24 Sep 2022 at 04:37:17

Gaearon

[Beta] Upgrade to MDX 2

Created On 24 Sep 2022 at 04:37:16
Issue Comment

Gaearon

MDX 2 (attempt 2)

Related to: GH-4058.

Note this PR is giant. It changes the format for heading IDs. Please review by commit and skip most files in Use {/*id*/} for headings because MDX has expressions.

This PR gets stuff working-ish, but there’s still more to do.

Here are some notes:

A bunch of stuff on the site isn’t working. My guess is that that has to do with mdxType and isMDXComponent no longer existing, and the rendered VDOM nodes being different, which are sniffed in several components here.

  • The top nav bar isn’t showing (This page was not added to one of the sidebar JSON files), I don’t know why. Probably similar to the VDOM sniffing in MarkdownPage
  • This currently completely breaks LayoutPosts ToC stuff. It’s sniffing the generated VDOM nodes that will be rendered. That changed. Can someone explain to me what the goal of the ToC is, and we can make a nice reusable version of it instead?
  • There are a bunch of react warnings that’ll have to be investigated
  • inlineCode was removed — need to figure out a way to enhance block code (pre > code) and differentiate with “inline” code (code not in pre)
  • To do: Have to look at MDX/APIAnatomy, MDX/Challanges/Challenges, MDX/CodeDiagram, MDX/Link, MDX/PackageImport, MDX/Sandpack, pages/_app
  • MDX provider is not used for a context based API — should be possible to pass components to MDXContent instead
  • Some stuff is now in xdm, which will get released in the next MDX RC, swap that out last

My goal is to get some early feedback in. Will clean up later.

Forked On 24 Sep 2022 at 04:34:16

Gaearon

https://github.com/reactjs/reactjs.org/pull/5107

Commented On 24 Sep 2022 at 04:34:16

Gaearon

[Doesn't work yet] Use MDX 2

Created On 24 Sep 2022 at 04:34:05
Issue Comment

Gaearon

[Doesn't work yet] Use MDX 2

This.. doesn't really work. I don't know why. If someone knows what the missing steps are, would be appreciated!

Forked On 24 Sep 2022 at 04:34:05

Gaearon

https://github.com/reactjs/reactjs.org/pull/5107

Commented On 24 Sep 2022 at 04:34:05

Gaearon

[Beta] Upgrade to MDX 2

Created On 24 Sep 2022 at 04:33:21

Gaearon

Fix up old pages

Pushed On 24 Sep 2022 at 04:30:08
Issue Comment

Gaearon

When can the Offscreen component be used?

When can the Offscreen component be used?please

Forked On 24 Sep 2022 at 04:23:45

Gaearon

When it's released in a stable version. We don't usually provide estimates for experimental features, but we're actively working on this feature.

Commented On 24 Sep 2022 at 04:23:45

Gaearon

Fix up old pages

Pushed On 24 Sep 2022 at 04:22:23

Gaearon

[Beta] MDX 2

Pushed On 24 Sep 2022 at 04:14:49