Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function LoginFE() {
const [customerid, setUserid] = useState(null);
useEffect(() => {
import('./kernel').then((Module) => {
Module.onKernelKey('change:customerid', _customerid => {
setUserid(_customerid);
});
setUserid(Module.getSharedKernel('customerid'));
})
}, []);
const update = (newState) => {
import('./kernel').then((Module) => {
Module.updateSharedKernel(newState);
})
}
return html`
<section class="wc-module">
</section>