Rewrite event_to_object
package
#1196
Labels
priority-1-high
Should be resolved ASAP.
release-minor
Warrents a minor release
type-bug
About something that isn't working
type-refactor
About improving code structure.
type-revision
About a change in functionality or behavior
Current Situation
Right now we need to manually declare everything that gets serialized on our front end.
This is primarily to prevent infinite recursive serialization of events.
Related issues
event["target"]
value for radio input and checkboxes is always'on'
#1188event["target"]
need to serializename
. #1186event["target"]["checked"]
does not exist for checkbox inputs #1070Proposed Actions
Re-write
event_to_object
to either have a max-depth of something reasonable like10
, or perform serialization in a way that auto-detects recursive behavior.In terms of auto detection, the core idea would be to keep an temporary list of all events that have been serialized, and make sure to not serialize them twice. Here's some quick and dirty psuedocode...
For things that aren't serializable, we can skip them.
The text was updated successfully, but these errors were encountered: