Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Follow up,

    I realize there’s also a storageKey variable, but for whatever reason it is not being set. So my earlier comment that storage is the right place to put the data, is probably not right. Still not sure why this is happening.

    Hi,

    I was looking at this at the browser console and when I change the JSON body key from “storageKey” to just “storage”, the function appears to behave correctly.

    <script type="text/javascript" id="wp-data-js-after">
      /* <![CDATA[ */
      (function() {
        var userId = 0;
        var storageKey = "WP_DATA_USER_" + userId;                  
    
    wp. data.use(wp.data.plugins.persistence, {
       storage: storageKey
    });
    }
    )();
    /* ]]> */
    </script>

    …So I wonder, what is a good way to at least temporarily resolve this issue until the plugin issuer fixes it?

    Side note: this code block above comes from: data.min.js.

    Thanks.

    • This reply was modified 9 months, 3 weeks ago by wm408.
Viewing 2 replies - 1 through 2 (of 2 total)