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

View models vs Data models best practices and features #329

Open
jimkring opened this issue Jun 1, 2024 · 0 comments
Open

View models vs Data models best practices and features #329

jimkring opened this issue Jun 1, 2024 · 0 comments

Comments

@jimkring
Copy link
Contributor

jimkring commented Jun 1, 2024

I think there’s a tension right now between a custom RowModel to serve as a view in tables/lists and using the columns: list[DisplayModel] to select which data to display.

(See #86 for a good example of this tension)

From a maintainability perspective, I find that having a “View” Model for each type of view into my DataModel works very well (e.g. RowView and DetailView).

Conversely, I have found the columns: list[DisplayModel] approach feels like a lot of boilerplate and harder to maintain.

I’m not sure the best answer/approach, yet it seems there’s room for enhancements to FastUIs components, base classes, and/or documented best practices.

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

No branches or pull requests

1 participant