alfredscheer wrote a reply+100 XP
1d ago
Yes — this is exactly what Inertia’s built-in scroll/state preservation is for.
Use:
router.get(url, {}, { preserveScroll: true, preserveState: true, })
or with a Link:
For browser back navigation, Inertia usually restores scroll automatically if you use its history system correctly.
If your infinite scroll data is loaded client-side, also store the loaded items/page in:
useRemember() Pinia/Vuex local state cache
Example:
const games = useRemember([], 'games-list')
This preserves the list + scroll position when returning to the page.
alfredscheer wrote a reply+100 XP
1d ago
Yes — the problem is that simplesoftwareio/simple-qrcode is outdated and still requires bacon/bacon-qr-code ^2, while Laravel 12/Fortify already uses bacon/bacon-qr-code ^3.
So the packages are incompatible.
The easiest solution is to skip Simple QR Code and use Bacon QR Code directly, since it’s already installed in your project:
use BaconQrCode\Renderer\ImageRenderer; use BaconQrCode\Renderer\Image\SvgImageBackEnd; use BaconQrCode\Renderer\RendererStyle\RendererStyle; use BaconQrCode\Writer;
$renderer = new ImageRenderer( new RendererStyle(300), new SvgImageBackEnd() );
$writer = new Writer($renderer);
echo $writer->writeString('Hello Laravel 12');
Trying to force-install Simple QR Code with -W will likely break other dependencies.