Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Commit

Permalink
Update to vdom for onupdate hook.
Browse files Browse the repository at this point in the history
1. Previous the onupdate hook always fired whether the props changed or not. Introduced a check to only fire onupdate when an element's props have changed.
  • Loading branch information
Wobbabits committed Oct 30, 2019
1 parent a8df4f5 commit 718656f
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 20 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# composi/core Changelog

## 2.5.8 (October, 29, 2019)

### src/vdom.js

* Added function `areNotEqual` which is used to check if the old props and new props of a VNode are identical. If they are not identical then `onupdate` executes, otherwise not.

## 2.5.7 (October 27, 2019)

### tsconfig.json, package.json
Expand Down
2 changes: 1 addition & 1 deletion dist/composi-core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/composi-core.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/composi-core.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 718656f

Please sign in to comment.