What is the difference between different normalization / serialization hooks in ember data?

There are many interceptors in the ember data v1.0.0-beta.16.1.

Its just hard to understand the purpose of these hooks. For beginners, it seems that they are all designed to do the same.

I want to understand applications,

and. normalize and normalize hash

B. serialize

C. normalizePayload

+4
source share
1 answer

docs explain them pretty well, but here is my example:

normalize used to change the root object in the incoming payload.

normalizeHash used to change the properties of individual objects in an incoming payload.

serialize , .

normalizedPayload , .

+2

Source: https://habr.com/ru/post/1584440/


All Articles