Skip to content

Custom serialization useCache enumIndex #32

@filt3rek

Description

@filt3rek

Hej Jason,

I've looked at the hxSerialize function on the ufront.db.Object and there are 2 mistakes I think : useCache and enumIndex can't be set in this custom function because the serializer has yet done with "useCache" before entering in this function.
It ends with strange behaviours when dealing with circular references... (I think this issue is linked too : #30)
The only thing to do is to set the static global USE_CACHE or rework the remoting HttpConnection.processRequest (and handleRequest) in order to set from the client these values useCache and enumIndex for the Serializer instance that works for the remoting...

That said, I see that Ufront is no longer maintened, I hope you're fine, all is ok.

Regards,
Michal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions