Closed rajtejani closed 3 years ago
Hi @rajtejani, how are you defining the useTracker
variable? useTracker is a property of Meteor, so needs to be used like this:
import Meteor from '@meteorrn.core';
...
Meteor.useTracker(() => {
})
or this:
import Meteor from '@meteorrn.core';
const { useTracker } = Meteor;
...
useTracker(() => {
})
Are you using the second option?
Thanks @TheRealNate . I was actually importing like this 😅
import {useTracker} from '@meteorrn/core'.
Your both way is working fine. Thanks for the help again.
Describe the bug I have installed 2.1.0 and tried to use useTracker hook but it gives me an error that _core.useTracker is not a. function. I am trying to use this hook inside the function component.
Screenshots
Device (please complete the following information):