tanthammar/livewire-window-size
Livewire Window Size exposes the browser's window dimensions and responsive breakpoints to your Livewire components, letting you react to resizes and adapt layouts or behavior server-side with minimal JavaScript. Easy to install and use.
mountHasBreakpoints() read a non-existent config key (livewire-window-size.breakpoints) so breakpoints were always [], and getBreakpoint() declared : array while returning an int, throwing a TypeError on every call. Pin to 4.0.1 or later, and disregard any prior spike or benchmark run on 4.0.0 — those results measured a broken component.getBreakpoint() return value in your own suite, and plan to vendor the package if it becomes load-bearing.srcset/media queries for images and layout where possible.breakpoints.window-width config lookup and changes getBreakpoint() to return int; anyone who worked around the old broken behavior (empty breakpoint arrays, catching the TypeError, or type-hinting the array return) must revisit that code before upgrading. Add tests covering breakpoint resolution, the int return type, hydration, and caching, and be prepared to vendor or replace it. Do not use it as a substitute for responsive CSS, srcset, or no-JS-safe rendering.How can I help you explore Laravel packages today?