{
    "componentChunkName": "component---src-templates-doc-page-js",
    "path": "/docs/en/JS_API/variables/client/",
    "result": {"data":{"site":{"siteMetadata":{"title":"Gatsby-doc-engine"}},"markdownRemark":{"id":"1dccc5f6-b04e-53eb-adfb-317361a6db4a","excerpt":"An object which is used to store permanent client data. Once all the reactions are executed, the  structure is getting saved in the interior database. There are…","html":"<h1><code class=\"language-text\">$client</code></h1>\n<hr>\n<p>An object which is used to store permanent client data.</p>\n<p>Once all the reactions are executed, the <code class=\"language-text\">$client</code> structure is getting saved in the interior database. There are no specific fields.</p>\n</br>\n<h4>How to use</h4>\n<div class=\"gatsby-highlight\" data-language=\"sc\"><pre class=\"language-sc\"><code class=\"language-sc\"><span class=\"token keyword\">state:</span> Welcome\n    <span class=\"token variableParameter\">script:</span>\n      $context.session = {}\n      var $session = $context.session; \n      $client.welcome = true;</code></pre></div>\n<div class=\"gatsby-highlight\" data-language=\"sc\"><pre class=\"language-sc\"><code class=\"language-sc\"><span class=\"token variableParameter\">if:</span> !$client.registered\n            <span class=\"token variableParameter\">go!:</span> /Registration/Start\n        <span class=\"token variableParameter\">else:</span>\n            <span class=\"token variableParameter\">go!:</span> /Welcome</code></pre></div>","frontmatter":{"title":"","description":null},"headings":[{"value":"<code class=\"language-text\">$client</code>"}]}},"pageContext":{"slug":"/docs/en/JS_API/variables/client/","previous":{"fields":{"slug":"/docs/en/JS_API/variables/context/"},"frontmatter":{"title":"","description":null}},"next":{"fields":{"slug":"/docs/en/JS_API/built_in_functions/toPrettyString/"},"frontmatter":{"title":"","description":null}}}},
    "staticQueryHashes": ["1209419333"]}