I noticed that query parameters were not being properly deserialized when being passed into the setup hook due to changed always being an empty object.
It looks state will have the most accurate representation of what has actually changed so I merged that into the changed object.
Not sure if this is the best way to fix this but it's working for my use case.
I don't think this is a common issue, I only discovered it because I was adding a negative number to my page parameter rather than subtracting from it.
I noticed that query parameters were not being properly deserialized when being passed into the
setup
hook due tochanged
always being an empty object.It looks
state
will have the most accurate representation of what has actually changed so I merged that into thechanged
object.Not sure if this is the best way to fix this but it's working for my use case.
I don't think this is a common issue, I only discovered it because I was adding a negative number to my page parameter rather than subtracting from it.