Skip to content

Commit

Permalink
Merge pull request #19 from XantreGodlike/changeset-release/main
Browse files Browse the repository at this point in the history
Version Packages
  • Loading branch information
XantreDev authored Oct 21, 2023
2 parents da8f9b4 + 104cb84 commit 0492426
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
20 changes: 0 additions & 20 deletions .changeset/yellow-pans-raise.md

This file was deleted.

21 changes: 21 additions & 0 deletions packages/react-fast-hoc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# react-fast-hoc

## 0.3.1

### Patch Changes

- 32e18c1: Fixed wrapping into hoc in case of nested `React.memo`
Resolves: [#17](https://github.com/XantreGodlike/react-fast-hoc/issues/17)

```tsx
const Component = transformProps(
React.memo(
React.memo((props) => {
console.log(props); // prev: { c: 30 }, now: { a: 10, b: 20, c: 30 }
return null;
})
),
(props) => ({ ...props, a: 10, b: 20 })
);

root.render(<Component c={30} />);
```

## 0.3.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-fast-hoc/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-fast-hoc",
"license": "MIT",
"version": "0.3.0",
"version": "0.3.1",
"sideEffects": false,
"type": "module",
"publishConfig": {
Expand Down

0 comments on commit 0492426

Please sign in to comment.