avo
avo copied to clipboard
Refresh one table row
Related:
- https://github.com/avo-hq/avo/issues/3342
- https://github.com/avo-hq/avo/commit/231d96996053cefa72c97f3113232c101fbde03a
Possible approach
We make use of code in this area to essentially run Avo::Index::TableRowComponent.new(resource: ...) and use that in a new controller method that returns a turbo stream response to replace it.
# in the controller action
render turbo_stream: turbo_stream.update_all 'tr[data-id="THE_ID"]', Avo::Index::TableRowComponent.new(resource: ...)
This way we pinpoint exactly what we want to update in the most efficient way possible.
Can we timebox this to 30 mins to see how much time it would take to build it?
This issue has been marked as stale because there was no activity for the past 15 days.