<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using persistProperties or Local Storage API in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-persistProperties-or-Local-Storage-API/m-p/3669317#M8858</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I&lt;SPAN&gt;&amp;nbsp;have created a Power BI visual using React, I use this code to create my visuals :&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/create-react-visual" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/developer/visuals/create-react-visual&lt;/A&gt;&lt;BR /&gt;In my code, I create a count boundary and click to increase the count value like this&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;setCount&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;useState&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;When I change page, or press [F5], my count value returns 0.In addition, I also have some other variables to save settings for my app. How can I save my value when I change page and get it when I go back. I read some old Message posts and some one use&amp;nbsp;persistProperties, some one tell about&amp;nbsp;Local Storage API. I dont know which one to use and how to use this. Any one help me?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2024 03:06:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-31T03:06:40Z</dc:date>
    <item>
      <title>Using persistProperties or Local Storage API</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-persistProperties-or-Local-Storage-API/m-p/3669317#M8858</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I&lt;SPAN&gt;&amp;nbsp;have created a Power BI visual using React, I use this code to create my visuals :&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/create-react-visual" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/developer/visuals/create-react-visual&lt;/A&gt;&lt;BR /&gt;In my code, I create a count boundary and click to increase the count value like this&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;setCount&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;useState&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;When I change page, or press [F5], my count value returns 0.In addition, I also have some other variables to save settings for my app. How can I save my value when I change page and get it when I go back. I read some old Message posts and some one use&amp;nbsp;persistProperties, some one tell about&amp;nbsp;Local Storage API. I dont know which one to use and how to use this. Any one help me?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 03:06:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-persistProperties-or-Local-Storage-API/m-p/3669317#M8858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-31T03:06:40Z</dc:date>
    </item>
  </channel>
</rss>

