RFC: let experimental_createPersister's serialize/deserialize only run on data of query #6447
Unanswered
Jack-Works
asked this question in
Ideas
Replies: 1 comment 3 replies
-
we need to serialize the whole query/packages/query-persist-client-core/src/createPersister.ts Lines 146 to 154 in 462c557 But you can customize the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Our serializer keeps non-JSON objects into JSON objects and adds additional meta information. Currently, it runs serialized on the whole PersistedClient. The serialized object therefore contains a lot of unnecessary meta information.
If the serializer is run on each data, it can be like this and you can see it is much smaller:
This is the code I'm using to create this result:
Beta Was this translation helpful? Give feedback.
All reactions