Open meros opened 1 year ago
+1.
I'm using the withDefault(NumericArrayParam, [0, 100]);
with the removeDefaultsFromUrl
but it is not removed from the URL when the value did not change.
Yes same on my side :) Would definitely make sense to remove from params
In removeDefaults.ts, I would expect equals to be used (if defined) to check for equality between default and encoded value. If there is no equals, shallowEqual should be used instead.
Now, when I set a value that is not ===, but equals() to the default, the param is still present in the URL for no reason.