Skip to content

feat(react-utils)!: add render block wrapper option#775

Open
maeertin wants to merge 1 commit into
mainfrom
feat/react-utils-createRenderBlock-wrapper
Open

feat(react-utils)!: add render block wrapper option#775
maeertin wants to merge 1 commit into
mainfrom
feat/react-utils-createRenderBlock-wrapper

Conversation

@maeertin
Copy link
Copy Markdown
Contributor

No description provided.

@maeertin maeertin self-assigned this May 25, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 25, 2026

🦋 Changeset detected

Latest commit: 590b441

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@noaignite/react-utils Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented May 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment May 26, 2026 11:44am

Request Review

@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@            Coverage Diff             @@
##             main     #775      +/-   ##
==========================================
+ Coverage   70.42%   70.60%   +0.17%     
==========================================
  Files          66       66              
  Lines        1055     1058       +3     
  Branches      265      266       +1     
==========================================
+ Hits          743      747       +4     
  Misses        248      248              
+ Partials       64       63       -1     
Files with missing lines Coverage Δ
packages/react-utils/src/createRenderBlock.tsx 88.88% <100.00%> (+5.55%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates @noaignite/react-utils’s createRenderBlock to remove the built-in ErrorBoundary/Suspense composition and instead let consumers explicitly wrap rendered blocks via a new wrapper option.

Changes:

  • Removed the default ErrorBoundary/Suspense wrapping and the fallback option from createRenderBlock.
  • Added a wrapper({ children }, context, globals) option (plus RenderBlockWrapper type) to allow custom block composition.
  • Updated tests, docs, and added a major-version changeset describing the breaking change.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
packages/react-utils/src/createRenderBlock.tsx Replaces built-in boundary/suspense wrapping with an optional wrapper callback and adjusts prop shaping.
packages/react-utils/src/createRenderBlock.test.tsx Updates tests to validate wrapper behavior and new error propagation behavior.
packages/react-utils/skills/react-utils/component-factories-and-block-rendering/SKILL.md Updates documentation to describe wrapper-based composition.
.changeset/fresh-ducks-warn.md Declares a major release and documents the breaking API change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/react-utils/src/createRenderBlock.tsx
Comment thread packages/react-utils/src/createRenderBlock.tsx Outdated
@maeertin maeertin force-pushed the feat/react-utils-createRenderBlock-wrapper branch from ee80e78 to a576421 Compare May 25, 2026 13:34
@maeertin maeertin force-pushed the feat/react-utils-createRenderBlock-wrapper branch from a576421 to 1dbd091 Compare May 25, 2026 14:39
@maeertin maeertin force-pushed the feat/react-utils-createRenderBlock-wrapper branch from 1dbd091 to 5545eed Compare May 26, 2026 09:07
@maeertin maeertin force-pushed the feat/react-utils-createRenderBlock-wrapper branch from 5545eed to b6e6b85 Compare May 26, 2026 09:21
@maeertin maeertin force-pushed the feat/react-utils-createRenderBlock-wrapper branch from b6e6b85 to 198693d Compare May 26, 2026 11:25
@maeertin maeertin force-pushed the feat/react-utils-createRenderBlock-wrapper branch from 198693d to af4c02e Compare May 26, 2026 11:27
@maeertin maeertin force-pushed the feat/react-utils-createRenderBlock-wrapper branch from af4c02e to 590b441 Compare May 26, 2026 11:43
@maeertin maeertin marked this pull request as ready for review May 26, 2026 11:46
@maeertin maeertin changed the title feat(react-utils): add render block wrapper option feat(react-utils)!: add render block wrapper option May 26, 2026
Copy link
Copy Markdown
Member

@adamsoderstrom adamsoderstrom left a comment

Choose a reason for hiding this comment

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

Sweet! 🙌

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.

3 participants