mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Fix a typo.
This commit is contained in:
parent
358cfb3a29
commit
fc34484e5e
|
@ -21,9 +21,9 @@ export default function dynamicComponent (promise, options = {}) {
|
|||
loadComponent () {
|
||||
promise.then((AsyncComponent) => {
|
||||
// Set a readable displayName for the wrapper component
|
||||
const ayncCompName = AsyncComponent.displayName || AsyncComponent.name
|
||||
if (ayncCompName) {
|
||||
DynamicComponent.displayName = `DynamicComponent for ${ayncCompName}`
|
||||
const asyncCompName = AsyncComponent.displayName || AsyncComponent.name
|
||||
if (asyncCompName) {
|
||||
DynamicComponent.displayName = `DynamicComponent for ${asyncCompName}`
|
||||
}
|
||||
|
||||
if (this.mounted) {
|
||||
|
|
Loading…
Reference in a new issue