Kevin Newman

Results 168 comments of Kevin Newman
trafficstars

Okay, the problem was that I had a $ in my password. Is there a way to detect that and kick up a better error message?

Are you using deps, or no deps with your useTracker implementation?

Are you trying to set state from within your computation? Can you share your useTracker example?

Basically, you shouldn't set state from within the useTracker computation. That should be considered an anti-pattern. If you do need to do something like that (and you probably don't), consider...

Does anyone have an easy to follow write-up for how to get this to work while we wait for a permanent solution?

I'm not sure what a "simulation" is in this context, but it's probably [this line in useTracker](https://github.com/meteor/react-packages/blob/23ad90206d235cbcdf3fda71d2f36ad18840af9b/packages/react-meteor-data/useTracker.ts#L80). Basically, we are using a trick to avoid some side effects in some...

@StorytellerCZ That example of using a computation in useEffect is basically a very simple implementation of a useTracker hook. It doesn't try to do any first-render magic that the main...

Also, this error: `Error: Objects are not valid as a React child (found: [object Error]). If you meant to render a collection of children, use an array instead.` usually indicates...

@StorytellerCZ That was part of the idea behind useFind and useSubscribe, though maybe we didn't go far enough. MOST of the challenge with implementing a general purpose useTracker comes from...

If I were blue skying this, I'd probably look at coming up with fresh implementation of Meteor.subscribe and look at that entire data loading pipeline, and not try to keep...