when params is null, passing perRequest should not populate it
Description
When a resource's params prop is specified as a function, that function may return null to indicate that the fetch's conditions are incomplete and therefore that the fetch should not fire. At present, providing the perRequest prop automatically sets params.limit. This causes undesirable behavior when the params function returns null as it causes the fetch to fire when in fact the conditions are incomplete and it should be suppressed.
When a resource's
params
prop is specified as a function, that function may returnnull
to indicate that the fetch's conditions are incomplete and therefore that the fetch should not fire. At present, providing theperRequest
prop automatically setsparams.limit
. This causes undesirable behavior when theparams
function returns null as it causes the fetch to fire when in fact the conditions are incomplete and it should be suppressed.