Replies: 1 comment
-
It works perfectly ! 👍 Great job, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A few people have reported issues when using Livewire components inside of Peek previews. The error message looks something like this, depending on the exact version of Livewire:
This only affects Peek 2.x (Livewire v3).
The issue seems related to the
srcdoc
attribute on the iframe, which we use internally to render Blade previews. Previews rendered through thesrc
attribute (using a preview URL) are not affected by the issue.As a workaround, I've added a new
internalPreviewUrl
section in the configuration:enabled
totrue
to render all Blade previews through an internal preview route, managed by the plugin.middleware
to attach any additional middleware to the preview route. For example, theweb
middleware can be used to make sure the PHP session is started in the context of the preview.This is available as of Peek
v2.2.0
.Original issue:
Beta Was this translation helpful? Give feedback.
All reactions