Skip to content

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

Open
meirzamoodle wants to merge 1 commit intomoodle:mainfrom
meirzamoodle:MDL-87987_react_profiler
Open

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

Conversation

@meirzamoodle
Copy link
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.

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

netlify bot commented Mar 12, 2026

Deploy Preview for moodledevdocs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit f3f908c
🔍 Latest deploy log https://app.netlify.com/projects/moodledevdocs/deploys/69b2e716e929c70008221ebd
😎 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.

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.

1 participant