Skip to content

MDL-87987 [docs] add React Profiler guide for dev-mode mounting#1534

Merged
andrewnicols merged 1 commit intomoodle:mainfrom
meirzamoodle:MDL-87987_react_profiler
Mar 19, 2026
Merged

MDL-87987 [docs] add React Profiler guide for dev-mode mounting#1534
andrewnicols merged 1 commit intomoodle:mainfrom
meirzamoodle:MDL-87987_react_profiler

Conversation

@meirzamoodle
Copy link
Copy Markdown
Contributor

Add a new guide at docs/guides/javascript/react/profiler.md that explains Moodle’s React profiling workflow in developer mode.

The document covers:

  • How jsrev = -1 enables React development/profiling behavior in both PHP and browser layers
  • Programmatic mounting and unmounting via core/mount
  • Required module/export structure for new React components
  • Use of withProfiler for components mounted outside mountReactApp
  • Expected console output and render-time warnings in dev mode

Also update project-words.txt to include unminified for spell-check consistency.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 12, 2026

Deploy Preview for moodledevdocs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 16dd3db
🔍 Latest deploy log https://app.netlify.com/projects/moodledevdocs/deploys/69ba45393d47180008d804f6
😎 Deploy Preview https://deploy-preview-1534--moodledevdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@meirzamoodle meirzamoodle force-pushed the MDL-87987_react_profiler branch 2 times, most recently from 8c50349 to b0a48af Compare March 16, 2026 08:26
@meirzamoodle meirzamoodle force-pushed the MDL-87987_react_profiler branch from b0a48af to b0daa76 Compare March 18, 2026 06:15
Add a new guide at docs/guides/javascript/react/profiler.md that
explains Moodle’s React profiling workflow in developer mode.

The document covers:
- How jsrev = -1 enables React development/profiling behavior in both PHP and browser layers
- Programmatic mounting and unmounting via core/mount
- Required module/export structure for new React components
- Use of withProfiler for components mounted outside mountReactApp
- Expected console output and render-time warnings in dev mode

Also update project-words.txt to include unminified for spell-check consistency.
@meirzamoodle meirzamoodle force-pushed the MDL-87987_react_profiler branch from b0daa76 to 16dd3db Compare March 18, 2026 06:24
@andrewnicols andrewnicols enabled auto-merge March 18, 2026 06:51
@andrewnicols andrewnicols added this pull request to the merge queue Mar 19, 2026
Merged via the queue into moodle:main with commit c5537f4 Mar 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants