Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
Small fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
octet-stream committed Jan 13, 2020
1 parent 2b1eb94 commit 90eba54
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/lib/hoc/loadable/loadable.jsx
@@ -1,5 +1,4 @@
import {createElement, lazy, Suspense} from "react"
import {isLazy} from "react-is"
import {createElement, Suspense} from "react"

import useSuspender from "lib/hook/useTasksSuspender"
import parallel from "lib/helper/object/runParallel"
Expand All @@ -17,10 +16,6 @@ const createLoadable = (options = {}) => Target => {
const fallback = params.loading ?? params.fallback
const executor = params.serial ? serial : parallel

if (!isLazy(Target)) {
Target = lazy(Target)
}

function Loadable(props) {
const data = useSuspender(executor, loaders, id)

Expand Down

0 comments on commit 90eba54

Please sign in to comment.