Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 21848a8

Browse files
Updates deprecation notice
1 parent 642a325 commit 21848a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/index.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
/* eslint-disable no-console */
2+
13
import reactTreeWalker from 'react-tree-walker'
24

35
const warnmsg =
4-
'Deprecation notice: you are using the deprecated "asyncBootsrap" for "react-async-bootstrapper", please rename these to "bootstrap"'
6+
'"react-async-bootstrapper" deprecation notice: please rename your "asyncBootsrap" methods to "bootstrap"'
57

68
export default function asyncBootstrapper(app, options, context = {}) {
79
const visitor = (element, instance) => {
@@ -14,6 +16,7 @@ export default function asyncBootstrapper(app, options, context = {}) {
1416
? instance.bootstrap()
1517
: console.log(warnmsg) || instance.asyncBootstrap()
1618
}
19+
return undefined
1720
}
1821

1922
return reactTreeWalker(app, visitor, context, options)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /