load user

This commit is contained in:
HolgerHatGarKeineNode
2023-11-20 18:54:53 +01:00
parent 054df3b0af
commit b489f98c2a
11 changed files with 224 additions and 32 deletions

View File

@@ -0,0 +1,19 @@
import {ndkInstance} from "./ndk/instance.js";
export default (livewireComponent) => ({
async init() {
await ndkInstance(this).init();
console.log(this.$store.ndk.user);
if (this.$store.ndk.user) {
this.$wire.setUser(this.$store.ndk.user);
}
},
});