This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
import { country } from '../stores/local-store.js; | |
export let location; | |
function setCountry(value) { | |
// We can use this here because _layout calls useLocalStorage for country. | |
// If you have multiple variables to store each will need to be called | |
// in the same way in the _layout file. | |
country.set(value); | |
} |