Skip to content

Commit

Permalink
fix(register type): HMR时下无法更新注册组件并提示组件重复
Browse files Browse the repository at this point in the history
close #257
  • Loading branch information
leaferjs committed Nov 26, 2024
1 parent e994c03 commit 7c25f27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/type/src/LeaferTypeCreator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export const LeaferTypeCreator = {
list: {} as ILeaferTypeList,

register(name: string, fn: ILeaferTypeFunction): void {
list[name] ? debug.repeat(name) : list[name] = fn
list[name] && debug.repeat(name)
list[name] = fn
},

run(name: string, leafer: ILeaferBase): void {
Expand Down

0 comments on commit 7c25f27

Please sign in to comment.