The ideal filtrex expression should be reliable and return the same result every time it is evaluated. Letting the user call Math.random() by default goes against this principle and might lead to pathological applications states – imagine filtering a paginated list based on a random criterion.
Therefore, the random() function will be removed in v3. Anyone who needs it can pass it as a custom function.
The ideal filtrex expression should be reliable and return the same result every time it is evaluated. Letting the user call
Math.random()by default goes against this principle and might lead to pathological applications states – imagine filtering a paginated list based on a random criterion.Therefore, the
random()function will be removed in v3. Anyone who needs it can pass it as a custom function.