sdk-for-svelte
sdk-for-svelte copied to clipboard
Preferences pref actions slot aren't returning values
Granted, could very easily be my ignorance; however, the following doesn't give me values from the slot:
<script>
import * as M from "svelte-materialify/src";
import * as I from "@mdi/js";
import * as A from "svelte-appwrite";
let preferences;
let prefActions;
function loadPrefs(e) {
preferences = e.detail;
}
</script>
<M.Container>
<A.User let:user>
<A.Preferences
let:prefs={preferences}
let:actions={prefActions}
on:failure
>
Preferences: {preferences}
{prefActions}
</A.Preferences>
</A.User>
</M.Container>
Results in: {} Preferences: undefined [object Object] I've analyzed prefActions and it is correct but preferences remains undefined?
@TorstenDittmann is this still relevant?