Skip to content

Commit 85202cc

Browse files
hugmanriquestereobooster
authored andcommitted
Fix component name typo (#389)
The current `AsyncLoadedComponent` is not referenced in the entire readme, and the `prefetchLazy` argument name is `LazyComponent`, so I assume this was a typo.
1 parent bad8c5e commit 85202cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ const prefetchLazy = LazyComponent => {
200200
const prerenderedLazy = dynamicImport => {
201201
const LazyComponent = React.lazy(dynamicImport);
202202
return React.memo(props => (
203-
<PrerenderedComponent live={prefetchLazy(AsyncLoadedComponent)}>
203+
<PrerenderedComponent live={prefetchLazy(LazyComponent)}>
204204
<LazyComponent {...props} />
205205
</PrerenderedComponent>
206206
));

0 commit comments

Comments
 (0)