Skip to content

Commit

Permalink
release v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yisar committed Jun 27, 2021
1 parent dd80152 commit 6aaa666
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fre",
"version": "2.1.0-beta3",
"version": "2.1.0",
"type": "module",
"main": "dist/fre.js",
"unpkg": "dist/fre.umd.js",
Expand Down
4 changes: 2 additions & 2 deletions src/commit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const commit = (fiber: IFiber): void => {
const insert = (fiber: IFiber): void => {
let s = fiber.s
if (s) {
if (isFn(s.type)) {
if (s.isComp) {
s = getKid(s)
}
s.prev = fiber
Expand Down Expand Up @@ -42,7 +42,7 @@ const kidsRefer = (kids: any): void => {
}

const remove = (d) => {
if (isFn(d.type)) {
if (d.isComp) {
if (d.lane & LANE.REMOVE) {
if (d.hooks) {
d.hooks.list.forEach((e) => e[2] && e[2]())
Expand Down
2 changes: 1 addition & 1 deletion src/h.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isStr, arrayfy, isFn } from "./reconcile"
import { isStr, arrayfy } from "./reconcile"
import { FreElement } from "./type"

// for jsx2
Expand Down

0 comments on commit 6aaa666

Please sign in to comment.