Skip to content

Commit de5556b

Browse files
committed
Update imports in docs
1 parent a58c15c commit de5556b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/effect/create-effect-resource/index.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ For example, in cases where the resource is used by many components.
3333
```tsx
3434
// This example is in a complex social media web app that fetches info based on the path.
3535
// On navigation, routes set the effect to fetch the correct data and put it into a form consumable by app components.
36+
import { createEffectResource } from "solid-effect";
37+
3638
export const [appMeta, setAppMetaEffect] = createEffectResource<AppMeta>();
3739

3840
// Later, in a route that contains an effect called QUERY.

src/runtime/make-runtime/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { Meta } from "@storybook/blocks";
1515
```tsx
1616
// runtime.tsx
1717

18-
import { makeRuntime } from "../runtime";
18+
import { makeRuntime } from "solid-effect";
1919
import { Context, Effect, Layer, ManagedRuntime } from "effect";
2020

2121
// Our custom service that our runtime provides.

0 commit comments

Comments
 (0)