Skip to content

Commit

Permalink
Update imports in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JonahPlusPlus committed Nov 13, 2024
1 parent a58c15c commit de5556b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/effect/create-effect-resource/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ For example, in cases where the resource is used by many components.
```tsx
// This example is in a complex social media web app that fetches info based on the path.
// On navigation, routes set the effect to fetch the correct data and put it into a form consumable by app components.
import { createEffectResource } from "solid-effect";

export const [appMeta, setAppMetaEffect] = createEffectResource<AppMeta>();

// Later, in a route that contains an effect called QUERY.
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/make-runtime/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Meta } from "@storybook/blocks";
```tsx
// runtime.tsx

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

// Our custom service that our runtime provides.
Expand Down

0 comments on commit de5556b

Please sign in to comment.