Skip to content

Conversation

@andrasbacsai
Copy link
Member

Changes

  • Wrap ActivityMonitor in wire:ignore in database restore modal to prevent parent re-renders from destroying the component
  • Apply same preventative fix to database startup modal

Issues

The issue occurred when toggling the "Backup includes all databases" checkbox during database restore operations. The checkbox uses wire:model.live which triggers immediate parent re-renders, destroying the nested ActivityMonitor component in production mode.

wire:ignore prevents Livewire from re-rendering the DOM while preserving event listeners and functionality.

Wrap ActivityMonitor components in wire:ignore to prevent parent component
re-renders from destroying the Livewire component and causing "Snapshot missing"
errors in production mode.

The issue occurred when toggling the "Backup includes all databases" checkbox
during database restore operations. The checkbox uses wire:model.live which
triggers immediate parent re-renders, destroying the nested ActivityMonitor
component in the slide-over.

Changes:
- Wrap ActivityMonitor in wire:ignore div in import.blade.php
- Apply same fix preventatively to heading.blade.php

wire:ignore prevents Livewire from re-rendering the DOM inside the wrapper,
while still allowing event listeners and Alpine.js functionality to work
correctly. The existing reset logic (slideOverClosed event) continues to
function properly.

Fixes #7335

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@andrasbacsai andrasbacsai merged commit bdbecf3 into next Nov 28, 2025
4 checks passed
@andrasbacsai andrasbacsai deleted the livewire-snapshot-fix branch November 28, 2025 08:39
@andrasbacsai andrasbacsai mentioned this pull request Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant