We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b7ba0d commit 450aad8Copy full SHA for 450aad8
examples/custom-instance/src/index.js
@@ -8,9 +8,7 @@ const loadUser = ({ userId }) =>
8
.then(res => (res.ok ? res : Promise.reject(res)))
9
.then(res => res.json())
10
11
-const AsyncUser = createInstance({
12
- promiseFn: loadUser,
13
-})
+const AsyncUser = createInstance({ promiseFn: loadUser }, "AsyncUser")
14
15
const UserPlaceholder = () => (
16
<div className="user placeholder">
0 commit comments