• Catalog,  Commerce,  Episerver

    IContentLoader.Get(contentLink) is considered harmful for catalog content.

    A while ago I wrote about how you should be aware of IContentLoader.GetChildren<T>(contentLink)┬áhere. However, that is only half of story. IContentLoader.Get<T>(contentLink) is also considered harmful. Not in terms of it causes damage to your site (we would never, ever let that happen), nor it is slow (not unless you abuse it), but because it can behave very unexpectedly. As you might already know, catalog content fully supports language versions, which means a catalog might have multiple languages enabled, and each and every catalog item in that catalog (node/category, and entry) will be available in those languages. However, those languages are not equal, (only) one is master language. What’s the difference…