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

"export 'useComputed' was not found in 'mobx-react' #679

Closed
jackple opened this issue May 30, 2019 · 10 comments
Closed

"export 'useComputed' was not found in 'mobx-react' #679

jackple opened this issue May 30, 2019 · 10 comments

Comments

@jackple
Copy link

jackple commented May 30, 2019

After mobx-react@6.x, I still need to import useComputed from 'mobx-react-lite'?

@mweststrate
Copy link
Member

useComputed has been deprecated already in lite, so we didn't bother to include it in the new mobx-react bindings. See https://github.com/mobxjs/mobx-react-lite#usecomputedfunc---t-inputs-readonlyarrayany---t for details

@jackple
Copy link
Author

jackple commented May 30, 2019

Thanks! 😄.

@jackple jackple closed this as completed May 30, 2019
@jackple
Copy link
Author

jackple commented May 30, 2019

import { useLocalStore, useObserver } from 'mobx-react-lite'

I think import useXXX from mobx-react-lite is weird beacuse I did not install it by myself!!!

@jackple jackple reopened this May 30, 2019
@mweststrate
Copy link
Member

mweststrate commented May 30, 2019 via email

@jackple
Copy link
Author

jackple commented May 30, 2019

There is no useLocalStore or useAsObservable in mobx-react.d.ts

@mweststrate
Copy link
Member

mweststrate commented May 30, 2019 via email

@mweststrate
Copy link
Member

mweststrate commented May 30, 2019 via email

@jackple
Copy link
Author

jackple commented May 30, 2019

mweststrate added a commit that referenced this issue May 30, 2019
@mweststrate
Copy link
Member

mweststrate commented May 30, 2019 via email

@lock
Copy link

lock bot commented Jan 14, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or questions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants