CompoundFilter.toJSON()
throws when FunctionFilter
present
#3929
Labels
CompoundFilter.toJSON()
throws when FunctionFilter
present
#3929
CompoundFilter.toJSON
callstoJSON
on its child filters:https://github.com/xh/hoist-react/blob/c94ce756e930e6b32bf8d67271795b5db7b1892d/data/filter/CompoundFilter.ts#L70C1-L76C6
This will throw in the presence of a
FunctionFilter
sinceFunctionFilter
does not have atoJSON
method (functions are not serializable).To fix, function filters should be omitted. Could consider flattening afterward as well.
The text was updated successfully, but these errors were encountered: