Open mryellow opened 3 years ago
When not given a $props.sort the created life-cycle hook will default $props.sort to $props.rowKey which is itself defaulted to _id.
$props.sort
created
$props.rowKey
_id
When given a url containing a sort query-string this will then result in 2 sort params being sent to the server.
url
sort
sort=from-url&sort=_id
Which the search middleware will see as sort === ['from-url', '_id'] and will choke trying to replace - strings.
sort === ['from-url', '_id']
-
When not given a
$props.sort
thecreated
life-cycle hook will default$props.sort
to$props.rowKey
which is itself defaulted to_id
.When given a
url
containing asort
query-string this will then result in 2sort
params being sent to the server.sort=from-url&sort=_id
Which the search middleware will see as
sort === ['from-url', '_id']
and will choke trying to replace-
strings.