Skip to content

Update index.js#1

Open
seyoon20087 wants to merge 2 commits into
slorber:masterfrom
seyoon20087:master
Open

Update index.js#1
seyoon20087 wants to merge 2 commits into
slorber:masterfrom
seyoon20087:master

Conversation

@seyoon20087

Copy link
Copy Markdown

Note: i have not put this._loadModule() directly in the constructor.
While running the test (jest), I found that putting this._loadModule() in the constructor led to undefined behavior, causing almost all tests to fail (which may also affect runtime behavior).
So, I moved only the reporting feature from this._loadModule() in the constructor, but I put the remaining stuff from this._loadModule() to componentDidMount.

please see the comments in index.js for more information.

Signed-off-by: seyoon20087 <24852454+seyoon20087@users.noreply.github.com>
@seyoon20087
seyoon20087 marked this pull request as ready for review July 23, 2026 11:39

@slorber slorber left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my suggestion here facebook/docusaurus#12311 (comment)

Comment thread src/index.js Outdated
Comment thread src/index.js Outdated
Comment thread src/index.js Outdated
Signed-off-by: seyoon20087 <24852454+seyoon20087@users.noreply.github.com>
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