react-packages icon indicating copy to clipboard operation
react-packages copied to clipboard

Meteor packages for a great React developer experience

Results 43 react-packages issues
Sort by recently updated
recently updated
newest added

It seems that in 2.5.1 you can't use hooks inside withTracker anymore. I referenced this issue in https://github.com/meteor/react-packages/issues/354#issuecomment-1133885651 and now I am creating a separate issue for it. Please take...

As of React 18, `ReactDOM.render` is no longer supported. When using the library, the following warning is displayed in the console: Is [this the place](https://github.com/meteor/react-packages/blob/501f0ecfbd694d38f35afde4c96b449b69f8b60e/packages/react-template-helper/react-template-helper.js#L29) where the the render() call...

Considering that Meteor release 2.8 is bringing a new MongoDB Async API ([PR 12028](https://github.com/meteor/meteor/pull/12028)), this PR introduces `fetchAsync` method on `useFind` hook. As recommended we should be using async methods...

Modification implemented as suggested in section 4.2. https://github.com/meteor/react-packages/pull/360#issuecomment-1290668953. It removes the `fetch` function call and adds a data initializer made with cursor observing.

``` javascript const useSubReady = (pagination) => useTracker(() => { const { filters, page, perPage, sort } = pagination; const subPagination = Meteor.subscribe("pagination.members", filters, page, perPage, sort); return { loading:...

bug

This adds the `react-meteor-state` package! This package contains the `useMeteorState` hook, which provides a state manager like React's build in `useState` built on Meteor's `Reload` package. The result, state persists...

help wanted

When using `useTracker` in lazy components I noticed that sometimes data get subscribed, unsubscribed and subscribed again. This happens because [useMemo][L122] and [useEffect][L127] sometimes gets called synchronously, thus [comp.stop()][L121] gets...

bug
in-discussion

Hey, when adding the useUserId() hook to my component, I get the following error: ``` Error running template: Error: Meteor.userId can only be invoked in method calls or publications. ```...

Let's say you have a Company object, and associated Persons bound by a lookup field. And say you want to output the combined information. Is this really the best pattern?...

According to the docs, this should work: ```js const listLoading = useTracker(() => { // Note that this subscription will get cleaned up // when your component is unmounted or...