Open amcclain opened 1 month ago
We can't actually serialize a function filter, but having toJSON() on the base class would be helpful and avoid cheats like:
toJSON()
https://github.com/xh/hoist-react/blob/c202046fa32d2f112d4ad5de8621c634634dce4b/data/filter/CompoundFilter.ts#L51
which could then throw in an unhandled way.
Should we implement something human-readable, even if it could not be parsed back?
We can't actually serialize a function filter, but having
toJSON()
on the base class would be helpful and avoid cheats like:https://github.com/xh/hoist-react/blob/c202046fa32d2f112d4ad5de8621c634634dce4b/data/filter/CompoundFilter.ts#L51
which could then throw in an unhandled way.
Should we implement something human-readable, even if it could not be parsed back?