This commit is contained in:
@@ -20,7 +20,7 @@ const RouteComponent = Component.make(function* AsyncRendering() {
|
||||
onChange={e => setInput(e.target.value)}
|
||||
/>
|
||||
|
||||
<VMemoizedAsyncComponent />
|
||||
<VMemoizedAsyncComponent fallback={<p>Loading memoized...</p>} />
|
||||
<VAsyncComponent />
|
||||
</Flex>
|
||||
)
|
||||
@@ -61,7 +61,7 @@ const AsyncComponent = Component.make(function* AsyncComponent() {
|
||||
</Flex>
|
||||
)
|
||||
}).pipe(
|
||||
Component.suspense
|
||||
Component.suspenseWithOptions({ defaultFallback: <p>Loading...</p> })
|
||||
)
|
||||
const MemoizedAsyncComponent = Component.memo(AsyncComponent)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user