Optional lazy results for the useLiveQuery hook
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.9k
- Forks
- 266
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 55
Description
Like the non-lazy version, but only triggers a re-render when the length of the results change, or a key moves/changes.
You then pass the result item through to a sub component and useLazyItem() which triggers just that component to re-render when the item itself changes.
It's a bit like memoizing the sub components, but without even the outer component rendering the list at all for small changes.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the useLiveQuery hook and the existing non-lazy behavior, then find how useLazyItem is intended to fit into the result-item flow. Review the surrounding hook tests or usage examples if available. Done means the requested lazy result behavior is defined and verified for list length, key changes, and item changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100