Skip to content

Add attribute component:navigate#15

Closed
MasterZydra wants to merge 6 commits intowire-elements:1.xfrom
MasterZydra:main
Closed

Add attribute component:navigate#15
MasterZydra wants to merge 6 commits intowire-elements:1.xfrom
MasterZydra:main

Conversation

@MasterZydra
Copy link
Contributor

Usage

<a href="" component:navigate data-component="MyComponent" data-params='{someParam: 42}'>Page 2</a>

It replaces the attributes data-component and data-params in the closest livewire tag.

@MasterZydra MasterZydra mentioned this pull request Jun 12, 2024
@MasterZydra
Copy link
Contributor Author

Hi @PhiloNL,
Have you had a chance to take a look at my proposal?

@PhiloNL
Copy link
Contributor

PhiloNL commented Aug 12, 2024

Hi @PhiloNL, Have you had a chance to take a look at my proposal?

Not yet, still need to dive into the use case and give this a test.

MasterZydra and others added 4 commits September 9, 2024 20:29
## Changes
The `<script>` tag is now rendered via `Blade::render()` and added to
the json response returned by the `/embed` route.
On the client side, `injectLivewire()` consumes this tag and injects the
script into the page.

Since the script is delivered through the embed payload, the helpers
`getLivewireAssetUri()` and `getLivewireUpdateUri()` become obsolete
from my point of view.
…e-elements#47)

## Changes
- Replace deprecated `Livewire.hook('request')` with
`Livewire.interceptRequest`
- Send `X-Wire-Extender` header with a non-empty value to avoid
potential
  stripping by proxies/load balancers that ignore empty custom headers.
- Fix component class resolution by avoiding `$this` usage in static
context
@MasterZydra
Copy link
Contributor Author

Hi, do you still have this PR in mind 😉?

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.

3 participants