eidellev / inertiajs-adonisjs

280 stars 17 forks source link

Use qs to preserve querystring #125

Closed arthur-er closed 11 months ago

arthur-er commented 11 months ago

Using only encode doesn't have full compatibility with all querystrings, AdonisJS uses qs under the hood, so we should use it here too

eidellev commented 11 months ago

Hey @arthur-er :-) Can you provide a bit more context on what isn't working as you expect?

arthur-er commented 11 months ago

Hey @arthur-er :-) Can you provide a bit more context on what isn't working as you expect?

Array serialization on querystrings for example

Passing array[]=1&array[]=2 results in a invalid encode using querystring , resulting in a valid request to adonis, but not properly updating the frontend url.