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

Reactive current selection #11

Open
meatballs opened this issue Nov 20, 2024 · 1 comment
Open

Reactive current selection #11

meatballs opened this issue Nov 20, 2024 · 1 comment

Comments

@meatballs
Copy link
Member

Currently, when a row is clicked in the index form, the logic to instantiate the detail form and open it in the sidesheet happens in the index form.

Should we perhaps separate those concerns?

e.g. We hold the 'currently selected item somwhere as part of the global state and make it reactive. The index form tabulator would then simply update that current selection.

We'd then have a render effect somewhere to control what happens as a result of that change - in the demo, that would open the sidesheet with the selected item displayed within the correct detail form.

@meatballs
Copy link
Member Author

Another thought...

We could route to a module instead of a form and do all the url handling there - something similar to an MVC controller. That could then handle the opening of the index and detail forms.

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