You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
558 B
1 lines
558 B
import{e as f,a5 as p,a6 as r}from"./CTAruH_8.js";const y="$s";function l(...e){const a=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(a);const[n,t]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(t!==void 0&&typeof t!="function")throw new Error("[nuxt] [useState] init must be a function: "+t);const i=y+n,s=f(),u=p(s.payload.state,i);if(t&&(s._state[i]??={_default:t}),u.value===void 0&&t){const o=t();if(r(o))return s.payload.state[i]=o,o;u.value=o}return u}export{l as u};
|
|
|