Skip to content

Commit c93cb48

Browse files
committed
wip: this does not work right?
1 parent 9efc506 commit c93cb48

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/react/useAtomValue.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ export function useAtomValue<Value>(atom: Atom<Value>, options?: Options) {
144144
if (!ReactExports.use) {
145145
const value = store.get(atom)
146146
if (isPromiseLike(value)) {
147-
attachPromiseMeta(
148-
createContinuablePromise(value, () => store.get(atom)),
149-
)
147+
createContinuablePromise(value, () => store.get(atom))
150148
}
151149
}
152150
// delay rerendering to wait a promise possibly to resolve

0 commit comments

Comments
 (0)