I have a JSLink file to customise an external list and list items.
context.Templates.Fields["VM_NAME"] = { "View": VmNameRenderCallback };
SPClientTemplates.TemplateManager.RegisterTemplateOverrides(context);
It works fine, but only after you clicked to view a list item then clicked "CLOSE" from the list item page, (or you create a new item, then click the cancel button from the create new item page)
All the customisations are lost, I can see the JSlink file is loaded, but doesn't look like it's being executed (I've put debugger in there, but it doesn't break at the break point)
I'm thinking it might be something to do with caching? But where can I find setting about caching in SP? (I'm on SP 2013 foundation)
Or it's something else?
Thanks!