Skip to content

Preserve Roam's React 18 hook and release 0.90.0 - #67

Merged
mdroidian merged 1 commit into
mainfrom
eng-2211-preserve-roam-react-hook
Sep 6, 2026
Merged

Preserve Roam's React 18 hook and release 0.90.0#67
mdroidian merged 1 commit into
mainfrom
eng-2211-preserve-roam-react-hook

Conversation

@mdroidian

@mdroidian mdroidian commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

Roam now provides React 18.2.0 and its native useSyncExternalStore hook. Extension startup currently assigns a compatibility hook onto shared window.React; the package build mapping also performs that assignment. This can interfere with components already using the shared hook.

Remove both assignments and use the host React export. Bump the minor version to 0.90.0 and document that consumers need a host providing this hook. Existing extension bundles need rebuilding; custom build configurations must remove their own shim injection separately.

Validation: package build, full ESLint (one existing warning), and two regression tests passed. The tests initialize/unload multiple extensions against frozen React exports and execute the configured React mapping. Unit tests also run in PR CI.

Related: DiscourseGraphs/discourse-graph#1369. DG currently carries the equivalent loader patch and passed manual direct cloud loads with Breadcrumbs and SmartBlocks enabled. After this release is published, DG can replace that patch with the released dependency.

Release: merging this version change to main triggers the existing npm publish workflow. Awaiting maintainer review before merge.


Devin Review

@coderabbitai

coderabbitai Bot commented Sep 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Team

Run ID: 31b9676c-cab1-4f57-b5e7-ce7406dcf30a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-06T23:27:32.397105Z cff1622 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mdroidian

Copy link
Copy Markdown
Collaborator Author

@codex review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: cff16228ac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mdroidian

Copy link
Copy Markdown
Collaborator Author

@codex review Round 2: focus on the published package, shared build mapping, and compatibility with existing extensions. Please report actionable regressions.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: cff16228ac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mdroidian

Copy link
Copy Markdown
Collaborator Author

@codex review Round 3 (final): review regression coverage and release safety, including whether the removed global writes remain anywhere in the package. Please report actionable issues.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: cff16228ac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mdroidian
mdroidian merged commit 13fc807 into main Sep 6, 2026
3 checks passed
@mdroidian
mdroidian deleted the eng-2211-preserve-roam-react-hook branch September 6, 2026 23:32
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