I have TS Objects with functions (as part of a browser game).
Is there a simple way or library to take an object, strip it of its functions, send over the data, and rebuild it into a full object with functions attached.
My current best idea is to use a sort of (de-)serialization middleware between Redux/Zustand and liveblocks.
Any hints/tricks/best practices/libraries are welcome.