@triumfator Using polling in the first place is not necessarily bad, but in your case it seems not like the best option. Did you create a nested component for your shipping rate?
How bad is it to use wire:poll to refresh a variable?
How bad is it to use wire:poll with 2 second delay to refresh a variable within Livewire view?
Basically, i have a livewire shopping cart page that gets dynamically calculated shipping values (returned as an array) from cart service controller. User is able to toggle between ground and shipping rate in livewire rendered view. If user changes their country, shipping rates get recalculated, but they don't always get refreshed in rendered view.
The only thing I was able to use to fix this issue and to refresh things perfectly every time is by using wire:poll in livewire view around the variable that had problems updating.
How bad or ghetto is this method?
Please or to participate in this conversation.