HDInnovations / UNIT3D-Community-Edition

Private Torrent Tracker Built With Laravel, Livewire and AlpineJS.
GNU Affero General Public License v3.0
1.97k stars 378 forks source link

[Bug] Advanced torrent search boxes are finiky. #3818

Open Audionut opened 5 months ago

Audionut commented 5 months ago

UNIT3D Version

8.x.x

PHP & Platform

xx

Laravel verion

xx

Have you done this?

Expectation

Un-checking boxes in advanced torrent search stay un-checked.

Clicking seems fine.

Description

Clicking to uncheck any box in the advanced torrent search seems to require a URL refresh, immediately, whenever any box is un-checked. Meaning that when you uncheck 2-3 boxes in quick fashion, the URL refresh forces unchecked boxes, other than the initial uncheck box, to revert back to checked status. Smell like a small wait after a click is noticed, and before refreshing would be fine.

Checking the boxes is fine, URL updates by having each option just appended to the existing URL, with the torrent results refreshing fine.

Stack trace & logs

No response

Upvote & Fund

Fund with Polar

Roardom commented 1 day ago

This was not fixed in the linked commit. That commit wasn't merged, a different one was that fixed a different issue.

However, this issue can only be solved by making sure the server returns a response faster than the debounce time, or to not use livewire at all.