You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ESA 1.0 blog post mentioned plans to ditch the proxying behavior of the session service, and instead access the session data directly via the content property.
I'm all for ditching the proxying behavior, but I'd like to suggest that you consider a name other than content for the data namespace. content is used by proxy objects everywhere, and it's generally a bad idea to reach into the content of a proxy directly. Even though the session service will not be a proxy any longer,I know when I see an object with a content property, my first assumption is that it is a proxy. And it's often quite difficult to tell if it's not.
I'm imagining all sorts of potential confusion when newcomers try using the service session like a proxy, and either end up confused as to why their service.myProperty is undefined, or they start binding directly to content.myProperty on other proxy objects because that's how ESA says to do it.
The text was updated successfully, but these errors were encountered:
The ESA 1.0 blog post mentioned plans to ditch the proxying behavior of the session service, and instead access the session data directly via the
content
property.I'm all for ditching the proxying behavior, but I'd like to suggest that you consider a name other than
content
for the data namespace.content
is used by proxy objects everywhere, and it's generally a bad idea to reach into thecontent
of a proxy directly. Even though the session service will not be a proxy any longer,I know when I see an object with acontent
property, my first assumption is that it is a proxy. And it's often quite difficult to tell if it's not.I'm imagining all sorts of potential confusion when newcomers try using the service session like a proxy, and either end up confused as to why their
service.myProperty
is undefined, or they start binding directly tocontent.myProperty
on other proxy objects because that's how ESA says to do it.The text was updated successfully, but these errors were encountered: