Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MrWangJustToDo committed Nov 18, 2024
1 parent c78b4da commit 3b21f3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"lint": "eslint --cache --ext ts,tsx .",
"lint:fix": "pnpm run lint --fix",
"prettier": "prettier --ignore-path .prettierignore --write .",
"clean": "pnpm -p -r -c exec rm -rf dist dev .cache",
"clean": "pnpm -p -r -c exec rm -rf dist dev .cache .next",
"purge": "pnpm -p -r -c exec rm -rf node_modules"
},
"husky": {
Expand Down
4 changes: 2 additions & 2 deletions packages/myreact-terminal/src/api/position/feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export const position = (fiber: MyReactFiberNode, renderDispatch: TerminalDispat
const beforeFiberWithDom = getInsertBeforeDomFromSiblingAndParent(fiber, parentFiberWithNode || rootFiber);

if (beforeFiberWithDom) {
insertBefore(fiber, beforeFiberWithDom, parentFiberWithNode);
insertBefore(fiber, beforeFiberWithDom, parentFiberWithNode || renderDispatch);
} else {
append(fiber, parentFiberWithNode);
append(fiber, parentFiberWithNode || renderDispatch);
}

fiber.patch = remove(fiber.patch, PATCH_TYPE.__position__);
Expand Down

0 comments on commit 3b21f3e

Please sign in to comment.