sdk-for-svelte icon indicating copy to clipboard operation
sdk-for-svelte copied to clipboard

Preferences pref actions slot aren't returning values

Open pspierce opened this issue 4 years ago • 1 comments

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?

pspierce avatar Jun 10 '21 12:06 pspierce

@TorstenDittmann is this still relevant?

lohanidamodar avatar Feb 11 '22 05:02 lohanidamodar