Skip to content

Commit

Permalink
Add changeset and summary
Browse files Browse the repository at this point in the history
  • Loading branch information
banderson committed Feb 11, 2023
1 parent 1d04fd7 commit 6f1ceef
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/four-rivers-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@remote-ui/react': minor
---

Added missing `detachDeletedInstance` function to `@remote-ui/react/reconciler`. This function is invoked during React's clean up phase, so prior to this change you'd get an exception / broken app when a component is removed from the tree.
4 changes: 4 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

- [#191](https://github.com/Shopify/remote-ui/pull/191) [`77ba3da`](https://github.com/Shopify/remote-ui/commit/77ba3da217cb0e443e674afc058916ca25f5900e) Thanks [@lemonmade](https://github.com/lemonmade)! - Removed re-export of `@remote-ui/rpc`. If you need `retain` or `release`, import them directly from `@remote-ui/rpc` instead.

### Patch Changes

- Added missing `detachDeletedInstance` function to `@remote-ui/react/reconciler`. This function is invoked during React's clean up phase, so prior to this change you'd get an exception / broken app when a component is removed from the tree.

## 4.6.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/tests/e2e.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ describe('@remote-ui/react', () => {
expect(appElement.innerHTML).toContain('bac');
});

it('handles removal of components that have unmounted', () => {
it('handles removal & cleanup of unmounted components', () => {
const receiver = createRemoteReceiver();
const remoteRoot = createRemoteRoot(receiver.receive, {
components: [RemoteImage, RemoteButton],
Expand Down

0 comments on commit 6f1ceef

Please sign in to comment.