Skip to content

Commit

Permalink
Merge pull request #457 from livewire/revert-456-patch-1
Browse files Browse the repository at this point in the history
Revert "Added Cloudflare troubleshooting information"
  • Loading branch information
calebporzio authored Jan 30, 2024
2 parents 52cd0da + e45827a commit 106829a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions troubleshooting.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
* [Root Element Issues](#root-element-issues)
* [Symptoms](#root-element-symptoms)
* [Cures](#root-element-cures)
* [Cloudflare Compatibility Issues](#cloudflare-compatibility-issues)
* [Symptoms](#cloudflare-symptoms)
* [Cures](#cloudflare-cures)


## Dom Diffing Issues {#dom-diffing-issues}
Expand Down Expand Up @@ -150,15 +147,3 @@ class HelloWorld extends Component
@endcomponent

Another cause can be using __construct() inside the Livewire class or a Trait.

## Cloudflare Compatibility Issues {#cloudflare-compatibility-issues}

When using Livewire in a production environment, you might encounter issues that stem from Cloudflare's Rocket Loader and HTML minification features. These issues can manifest as the page becoming unresponsive or errors indicating that a component is not found.

### Symptoms {#cloudflare-symptoms}
* Page becomes unresponsive after using `wire:navigate`.
* Errors like "Component not found: {component_ID}".

### Cures {#cloudflare-cures}
* **Disable Rocket Loader:** Go to your Cloudflare dashboard, navigate to the "Speed" section, and turn off Rocket Loader. This feature can interfere with the execution order of JavaScript, which is crucial for Livewire's operation.
* **Disable HTML Minification:** In the Cloudflare dashboard under the "Optimization" section, turn off HTML minification. This will prevent alteration or minification of Livewire's inline scripts, which can lead to operational errors.

0 comments on commit 106829a

Please sign in to comment.