SolidJSS
SolidJSโ€ข17mo agoโ€ข
28 replies
Raqueebuddin Aziz

createAsync not updating UI on client

    const serverBoards = createAsync(async () => {
        const boards = await getBoards(appContext.path);
        const x = await Promise.all(
            boards.map(async (board) => {
                board.title = await decryptWithUserKeys(board.title);
                return board;
            })
        );
        console.log(x);
        return x;
    });


the decryptWithUserKeys function is set so that it will return the input if running on server but on client it decrypts the data, the console.log confirms that the function is running and the data is decrypted but the UI never get's update on first load aka ssr load
Was this page helpful?