vue-viewports
vue-viewports copied to clipboard
$currentViewport is not reactive
The $currentViewport values do not change when you resize the window.
@scaccogatto can you take a look?
This variable is not meant to be reactive.
So is this way by design. I think it can be very usefull if the variable is reactive, in that way we can show or hide content base on matchMedia.
You can evaluate again the variable on the onresize event.
Sure, it would be very useful to make this value reactive.