Skip to content

Commit 15266f7

Browse files
authored
Bug Fix : Lazy Loader(Async) Render issue #163
I have resolved an issue that was related to the website not rendering properly for async due to import missing in LazyLoader cookiecutter_template
1 parent 333b7e9 commit 15266f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
export const {{cookiecutter.component_name}} = React.lazy(() => import(/* webpackChunkName: "{{cookiecutter.component_name}}" */ './fragments/{{cookiecutter.component_name}}.react'));
1+
import React from 'react';
2+
3+
export const {{cookiecutter.component_name}} = React.lazy(() => import(/* webpackChunkName: "{{cookiecutter.component_name}}" */ './fragments/{{cookiecutter.component_name}}.react'));

0 commit comments

Comments
 (0)