Uncaught ReferenceError: createDeepSignal is not defined

Not really sure what I'm doing wrong here. I definitely have SolidJS >v1.5 and I'm using a close copy of the documentation example. Do I need to manually create createDeepSignal? I feel like I'm making a silly error somewhere in here haha. Any help would be greatly appreciated! My code is below:
import { createResource, createSignal } from "solid-js";
import { createStore } from "solid-js/store";

const fetchData = async (path: string): Promise<any> => {
return await(
await fetch(path)
).json();
}

const [resource] = createResource(fetchData, {
storage: createDeepSignal
});

export const getData = () => [resource];
import { createResource, createSignal } from "solid-js";
import { createStore } from "solid-js/store";

const fetchData = async (path: string): Promise<any> => {
return await(
await fetch(path)
).json();
}

const [resource] = createResource(fetchData, {
storage: createDeepSignal
});

export const getData = () => [resource];
3 Replies
Want results from more Discord servers?
Add your server
More Posts
__vite_ssr_import_0__.default is not a function only on API endpointsI am getting an error from my api end-points when importing a third party library in my API code. I Why is storageSignal possibly null?I am having trouble understanding why TypeScript thinks that this storageSignal `theme` can be null:Is there a way to debug how callbacks are called, when firing an event with testing-library?[SOLVED]Hey, I am having a hard time testing my code and would like to find out if and how some of my eventUnderstanding Suspense in SolidStart SSRTo understand how Suspense behave in a SolidStart SSR project, I have project created using the SoliSolidStart debugging in VSCodeHow can I debug (mean put breakpoints and step over code) SolidStart project in VSCode? I am currenWhat's the best way to make a docs website?I'm building a SolidJS library and want to make a simple docs website for it. I'm hoping to leveragesolidjs/testing-library using `location` but still getting <Router /> errorHey, I am currently trying to setup on of my solid-apps with solidjs/testing-library. I want to tesAny way to get the status of a multipart/form-data file upload?I would like to be able to give the user some indication of how much of their file has completed uplregex in useMatchIs there a way to use a regex in useMatch? I would like to match `/book/2` ... but not just `/book`How to deploy unplugin-icons on production?For a SolidStart project, I'm using this library https://github.com/antfu/unplugin-icons as Icon C