Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Jun 15, 2022
1 parent c86f4fb commit eb36126
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/million/drivers/useChildren.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Flags,
NODE_OBJECT_POOL_FIELD,
VElement,
VNode
VNode,
} from '../types';
import { effect, hook } from '../utils';

Expand Down
3 changes: 2 additions & 1 deletion src/million/drivers/useNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export const useNode = (drivers: any[]): any => {
oldVNode.key !== newVNode?.key
) {
if (oldVNode.tag !== newVNode.tag) {
if (!invokeHook('create', newVNode) || !invokeHook('remove', oldVNode)) return finish(el);
if (!invokeHook('create', newVNode) || !invokeHook('remove', oldVNode))
return finish(el);
const newEl = createElement(newVNode, false);
queueEffect(EffectTypes.REPLACE, () => el.replaceWith(newEl));
return finish(newEl);
Expand Down
2 changes: 1 addition & 1 deletion src/million/m.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
VElement,
VElementFlags,
VNode,
VProps
VProps,
} from './types';

/**
Expand Down

0 comments on commit eb36126

Please sign in to comment.