-
Notifications
You must be signed in to change notification settings - Fork 27
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
DataTable refactor/rewrite #1043
Comments
Would be better here IMO https://github.com/sussol/react-native-data-table/issues Right questions though:
Decoupled. It's annoying for people wanting to use the table with anything other than realm. The coupling is Realm.ListView, but we're throwing that out with the rewrite anyway.
I think executed well, it's a pretty sensible package to exist in it's own right. I'm not against getting generic table page into mobile, though. 2 levels out is exponentially more of a pain in the ass than 1 level.
I say yes, though we're trading off backwards compatibility with older RN apps, with modern react APIs/style. Not that they are planning to deprecate the class API.
I think FlatList would probably be sufficient, but I appreciate the flexibility of not being locked to down to Arrays.
"Yes"
Yes
Yes
Yes Live examples Written in Expo or RN. Should flex the whole API. Might tie into automated tests. |
That's a pretty optimistic bar, but here's hoping there aren't hurdles haha. |
Reopening this issue as epic |
…1090-customerInvoice-new-data-table
…pply/mobile into #1043-data-table-rewrite
…1090-customerInvoice-new-data-table
Just need to port code to |
In terms of testing, this can be moved to "Done" as soon as the remaining issues are tested. |
Closing - looks more or less done (and if there was any testing missing, I think it's been in production long enough 😆 )? Any outstanding issues (e.g. porting) can be logged/tracked via a separate issue... |
Description
Old table is bad. We're rewriting it. See context (below) or msupply-foundation/react-native-data-table#46
Plan
We'll operate a local import of code for the data table. At the end we'll take the core parts back to react-native-data-table repo
Branches
Feature branch: #1043-data-table-rewrite
Tasks
Each task to have its own issue, branch and PR.
Utility
Pages
Need to rewrite all pages to use new data table.
Post refactor
Additional existing issues
These issues should either be fixed or closed with the new data table implementation
Context
Old data table was slow, using deprecated ListView, A specific Realmjs version of the deprecated ListView component. Generic table page has significant problems with multiple unnecessary full re-renders.
Design discussion
Addition context here msupply-foundation/react-native-data-table#46
If necessary, discuss GenericPage/GenericTablePage design. Going to have a crack at CustomerInvoicePage to get a solid grasp of the challenges.
Architecture
The text was updated successfully, but these errors were encountered: