Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[materialite] Adds materialite to the main issue list [1/n] #160

Open
wants to merge 2 commits into
base: mlaw/row-versioning
Choose a base branch
from

Conversation

tantaman
Copy link
Collaborator

@tantaman tantaman commented Dec 15, 2023

In follow up PRs:

  • incrementally maintain the kanban board
  • fetch a page at a time rather than all issues at once
  • emit normal js collections
  • syncing comments slows down quite a bit with the new findCreates method in cvr.ts. Maybe I can make this better 🤔

Diff duration:

diff.mov

I almost don't believe the numbers (< 1ms diffs) but they match the notebook which uses a dataset of 1 million items: https://observablehq.com/@tantaman/materialite#benchmarking-with-materialite

Filter updates:

filter-update.mov

todo:
- incrementally maintain kanban board
- fetch a page at a time
- emit normal js collections
@tantaman tantaman changed the title Adds materialite for the main issue list [materialite] Adds materialite to the main issue list [1/n] Dec 15, 2023
@tantaman
Copy link
Collaborator Author

tantaman commented Dec 15, 2023

There's a flash of stale state then current state when swapping between Kanban and List views 🤔. Need to figure this out.

Probably something in the hook implementation: https://github.com/vlcn-io/materialite/blob/7702cdece6f5d37b294189a2a38517d70005265e/packages/react/src/hooks.ts#L80

Update: the stale state flash came from: d7102f1

This was causing flickering of false state when switching from the board to the all view.

What would happen:

- Board would render with kanban order
- Swap to `all` would render with kanban order
- effect would run, updating order
- `all` would re-render with correct order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant