is there any replacement for Sitecore.Context.Database.Name in JSS..?

just trying to know the list of conteproperties are ac


By default, JSS route data contains the database name for the requested item, e.g. sitecore.route.databaseName.

Also, you may want to look into extending the Layout Service context data if you need the data outside of the route: https://jss.sitecore.com/docs/techniques/extending-layout-service/layoutservice-extending-context

  • Thank You Adam.. Any idea on how to access sitecore.route.databaseName in my jss component..? – Gobinath Dec 20 '18 at 17:06
  • Thank you Adam.. I can able to access the DB name using the below property sitecoreContext.route.databaseName.. also i tried extending the layout service context data, looks cool.. – Gobinath Dec 21 '18 at 3:22

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.