I'm using neverthrow in the context of a full-stack app with typed RPCs. I'd like to be able to handle on the frontend the Result's that the backend returns, except they aren't serialisable because they contain functions.
Even if functions get stripped by a framework and only valid JSON is sent over the wire, I don't know how to recreate the respective Result on the frontend. Is there an API like fromSerialized(result)? Is this an intended use-case for neverthrow?
I'm using neverthrow in the context of a full-stack app with typed RPCs. I'd like to be able to handle on the frontend the Result's that the backend returns, except they aren't serialisable because they contain functions.
Even if functions get stripped by a framework and only valid JSON is sent over the wire, I don't know how to recreate the respective Result on the frontend. Is there an API like
fromSerialized(result)
? Is this an intended use-case for neverthrow?