Unable to fork Typed State from Persister
Can't fork persisted state from persisters when using Typed State (Pydantic)
Current behavior
I am trying to setup code to fork a local state for debugging purposes. In our application we're using a typed State. I have not been able to figure out how to make sure that when I run the app with .initalize_from(), it loads the state from the persister as my Typed State (in this case an async SQLite in burr). It seems to load the state as a dict, so that the application doesn't work as all the actions follow the specific typed state system.
Expected behavior
I would expect .initalize_from() to have an argument controlling the type/pydantic model of the state I would like to load.
Additional context
It might be simply a case of adding an argument to initialize_from and then initalising the state as the supplied pydantic model from the loaded dict from the persister.