Aral Roca Gomez

Results 463 comments of Aral Roca Gomez

Note: It would be nice to make an integration with Suspense. ```jsx ``` ComponentThatUseQuery: ```js const [data, setData] = useQuery('repoData', () => fetch('https://picsum.photos/v2/list').then(res => res.json() ) ) ``` https://reactjs.org/docs/concurrent-mode-suspense.html

@Chetan-unbounce In fact it would be very similar to `useMemo` with a calculated store value but with a small difference: the hook that returns the `createStore` makes only 1 calculation...

Perhaps the `createSelector` could be renamed to `memoStoreCalc` or something like that.

I've modified it a little bit to accept as many proxy entries as you want to consume: Examples: ```js const useExpensiveCalc = createSelector( () => useStore.items, (items) => expensiveCalc(items) );...

@Chetan-unbounce I did a little modification to support to define the `stateFun` & `cb` to `useSelector`. I hope this works for you, if not we will look for a better...

I think it is better to create the hooks directly with the createSelector. Why do you need a separate useSelector?

> is there a plan to convert the createStore into typescript and accept a generic type for the state Yes, probably for 0.8 version 😊

For the moment the types are generated by default https://www.runpkg.com/[email protected]/dist/index.d.ts

Surely both of you are more familiar with TypeScript than I am, so I trust the proposal 😊. Thank you for the proposal 👏👏

@Chetan-unbounce thank you! Do you have some idea how to fix this? ![image](https://user-images.githubusercontent.com/13313058/144420309-1325d242-3ba7-44cc-8009-c42a3bcbd173.png) > Property 'postData' does not exist on type 'HookDry & getStoreType'. When the property is new in...