Is there a way to persist state in HubSpot? I am creating a custom CRM card and integrating our app. I want to persist some data so that when a user refreshes the page, the data isn’t lost and can be retrieved from local storage instead of making another API request.
Hey, @JMacasero
Thanks for your question. I’d like to invite some of our community experts to the conversation — hey @Humashankar @Danielle_J @Teun do you have any experience leveraging local storage this way? Or thoughts on other ways @JMacasero might accomplish their task?
Thank you! — Jaycee
Thanks @Jaycee_Lewis , Ideally you would want to leverage the CRM Card SDK, I would recommend either using:
- HubSpot Custom Properties: If you need to store data specific to a particular object like contact, deal, or company, you can use custom properties which will allow you to save and retrieve data directly within the HubSpot CRM.
- Alternatively, you could look into using the browsers local storage.
I hope this helps @JMacasero