Closed StorytellerCZ closed 2 years ago
There's code missing here. How did you get from this.user
to user._id
? That detail may be relevant.
@StorytellerCZ, would you be able to provide the code that @CaptainN asked for? So we can dig deeper into that. Thanks.
The user
comes from const user = useUser()
I think this issue here is that useSubscribe
does not require or accept deps
. Remove that, and you should be good to go.
(It's giving you a warning about checking your arguments, because your deps
array is being passed to the publication, which is neither expecting nor checking that argument.)
Looks like that might have been it.
I have this publication:
And then I'm getting the data via:
Which triggers the
Error: Did not check() all arguments during publisher 'profile'
fromaudit-argument-checks
If I revert the subscribe function back to:
Then the error goes away.