Skip to content

Commit

Permalink
fix(runtime): 修复微信小程序热重载报错的问题,fix #10722
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj committed Dec 13, 2021
1 parent b81a95b commit 24a3a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-runtime/src/dsl/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function createPageConfig (component: any, pageName?: string, data?: Reco
let loadResolver: (...args: unknown[]) => void
let hasLoaded: Promise<void>
const config: PageInstance = {
onLoad (this: MpInstance, options, cb?: Func) {
onLoad (this: MpInstance, options = {}, cb?: Func) {
hasLoaded = new Promise(resolve => { loadResolver = resolve })

perf.start(PAGE_INIT)
Expand Down

0 comments on commit 24a3a64

Please sign in to comment.