Repository navigation
Conversation
b-l-i-n-d
marked this pull request as ready for review
October 27, 2026 13:47
b-l-i-n-d
marked this pull request as draft
October 27, 2026 16:29
b-l-i-n-d
force-pushed
the
react-compiler
branch
from
October 27, 2026 16:37
7730787 to
c75f078
Compare
This was referenced Oct 27, 2026
b-l-i-n-d
force-pushed
the
react-compiler
branch
from
October 27, 2026 17:14
c75f078 to
6ddfa93
Compare
b-l-i-n-d
marked this pull request as ready for review
October 28, 2026 05:56
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.
ClickUp ticket link: https://app.clickup.com/t/9018365849/z8zyy1prfm
Description
This PR forms Layer 3 of the build stack. It integrates React Compiler into Tutor LMS's Rspack build pipeline using
@rspack/plugin-react-compiler(targeting React 18) and resolves form state memoization across Course Builder and Coupon Details.Key Changes
reactCompiler: { target: '18' }inrspack.config.mjsfor SWC transformation.react-compiler-runtimedependency inpackage.json.dirtyFieldschecks withform.formState.isDirtyacrossTracker,Header,LessonModal,QuizModal, andAssignmentModal.form.watchtouseWatchand wrappeduseFormWithGlobalErrorwithuseFormStatefor fine-grained subscription tracking.CouponPreview,CouponValidity,CouponDiscount,CouponInfo,CouponLimitation,Topbar, and CourseListModal tables) touseWatchso date pickers, discounts, and modal previews remain interactive after React Compiler memoization.Performance & Bundle Size Stats
compress: false)tutor-course-builder.jstutor-order-details.jstutor-payment-settings.jstutor-tax-settings.jstutor-import-export.jstutor-coupon.jstutor-addon-list.jstutor-core.jstutor.jsRuntime Impact
useMemoanduseCallbackguards are automated at compile time (540+ memoization cache sentinels generated).Stack
build/dependencies->devbuild/minifier-compression->build/dependenciesreact-compiler->build/minifier-compressionTesting
rspack --mode=productioncompiles cleanly.18.Use of AI Tool
Used: Yes
Used for:
Assisted in setting up React Compiler with Rspack, benchmarking production bundles, and resolving form state memoization across Course Builder and Coupon Details.