livewire / livewire/volt

Not set proprierty when using withQueryParams in functional api

Open
#119 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
Dominant language
PHP
Stars
423
Forks
36
PR merge metrics
No merged PRs in 30d

Description

### Volt Version

1.6.5

### Laravel Version

11.27.2

### PHP Version

8.3

### Database Driver & Version

sqlite

### Description

Hi!

I'm finding one error when i testing my volt component with URL property, (Volt functional API / Pest)

I'm finding one error when i testing my volt component with URL property, when a pass withQueryParams and make dd() in component the property not change the value to value passed in withQueryParams.

My property

![Image](https://github.com/user-attachments/assets/1d9491e6-b594-4e9f-b8d7-41492cc32c9a)

The test with debug

![Image](https://github.com/user-attachments/assets/161ceb9b-ac28-488a-b73a-26c1dbd07566)

Result:

![Image](https://github.com/user-attachments/assets/eb149479-d35d-4265-b126-28a7d4e0eb61)

### Steps To Reproduce

Create a url property and test it withQueryParams()

![Image](https://github.com/user-attachments/assets/7627c143-6708-4669-a3aa-afde08321431)

![Image](https://github.com/user-attachments/assets/8181676f-9aaa-418e-b93e-f0d0836388e0)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Volt functional API test that calls withQueryParams() for a URL property, using the reproduction steps and screenshots in this issue. Trace how the query parameter reaches the component and verify that the property receives the passed value during the test; done means the reproduced test observes the expected property value.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, php
Domain
backend, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.