[r5n-88] Modernize extension: React 17-19 support, performance fixes, updated snippets#353
Merged
ice-chillios merged 8 commits intomasterfrom Apr 28, 2026
Merged
[r5n-88] Modernize extension: React 17-19 support, performance fixes, updated snippets#353ice-chillios merged 8 commits intomasterfrom
ice-chillios merged 8 commits intomasterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Performance
prettierdependency (was experimental, had race conditions, caused activation crashes). Snippet search now delegates formatting to the user's configured VS Code formatterJSON.stringifyemptiness check withObject.keysin activationsetTimeoutin config change handlerSnippet updates
useId,useTransition,useDeferredValueuseActionState,useFormStatus,useOptimistic,use'use client'and'use server'directive snippetsSwitchremoved, addedRoutes,useNavigate,useParams,useSearchParams,createBrowserRouter,useLoaderData,useFetcher)rtrsetup(createBrowserRouter boilerplate),rtrla(route with loader/action)createAsyncThunk, RTK QuerycreateApi,createSlicewithextraReducers<div>to<></>(Fragments) in all component snippetsimportReactOnTopdefault tofalse(React 17+ JSX transform)rfcreduxpsnippet and brokenimbrs(imported removedSwitch)Bug fixes
extensionConfigto use explicitconfig.get()instead of unsafe cast — settings were not being read correctlyObject.assign(snippet, ...)→Object.assign({}, snippet, ...)), which prevented settings changes from taking effect after first generationimportReactOnTopnow applies to all snippets consistently (was only applied to a hardcoded subset)languageScopesvalidation with user warning for invalid valuesactivationEventscasing (typescriptReact→typescriptreact)exporttotsrafcsnippet to match its JS counterpartrafcDocumentation
imrs,imrse,imbrr,fref,ptypes), updated all examples to match current outputIssues
Fixes #348, fixes #347, fixes #346, fixes #344, fixes #320 — Performance / slow IDE
Fixes #333, fixes #325, fixes #313, fixes #305 — Extension crashes on startup
Fixes #350 — React import unnecessary with JSX transform
Fixes #316 — Snippets should use Fragments instead of
<div>Fixes #319 — Unknown language in activationEvents
Fixes #299 — Docs linking to deprecated reactjs.org
PR contributions incorporated
Closes #280 — Remove unnecessary React import (approach reworked)
Closes #291 — Update react-router imports to v6 (approach reworked)
Closes #317 — Redux API slice snippet (implemented as
rxapi)Closes #300 — Fix docs linking to old reactjs.org
Closes #301 — Missing export on
tsrafc