Lazy load and livewire refresh with tables

ok, so i have some alpine tabs and within those tabs are lazy loaded lw3 components with filament tables in it. Now on the parent component, sometimes i perform an action that would require one of those lazy loaded components to be refreshed (which really only matters if that tab is active). The problem is that if i sent the refresh event to a component that isnt currently rendered, it throws an error about $table must not be accessed before initialization. Is there not a native way to not attempt a refresh for a component that isnt even rendered? Doesnt really make sense to refresh one that isn rendered, right? I use these components in different areas of the app, so I am hoping to avoid having to add a property like $isRendered that has to be set/checked, etc, on each one.
1 Reply
Mark Chaney
Mark ChaneyOP4mo ago
Any ideas on this? I would think a livewire listener could know if its component is rendered or not. Would think refresh on a lazy loaded component would just render it versus cause that error
Want results from more Discord servers?
Add your server