Skip to content

fix(docs): add missing createEffect and createSignal imports in lifecycle examples#1532

Open
xcfio wants to merge 1 commit into
solidjs:mainfrom
xcfio:patch-1
Open

fix(docs): add missing createEffect and createSignal imports in lifecycle examples#1532
xcfio wants to merge 1 commit into
solidjs:mainfrom
xcfio:patch-1

Conversation

@xcfio
Copy link
Copy Markdown

@xcfio xcfio commented Jun 1, 2026

  • I have read the Contribution guide
  • This PR references an issue (except for typos, broken links, or other minor problems)

Description

The lifecycle documentation examples for onMount and onCleanup were missing necessary imports from "solid-js", causing code snippets to be non-functional if copied directly by readers.

Changes made:

  • In the onMount example: added createEffect and createSignal to the import statement
  • In the onCleanup example: added createSignal to the import statement
  • No logic, prose, or structure was changed — import lines only

This ensures documentation snippets are self-contained and copy-paste ready for developers learning SolidJS lifecycle primitives.

Related issues & labels

  • Closes #
  • Suggested label(s) (optional): Suggested label(s): documentation, bug, fix

Added createEffect and createSignal imports to enhance component functionality.
@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 1, 2026

Deploy Preview for solid-docs ready!

Name Link
🔨 Latest commit 605422a
🔍 Latest deploy log https://app.netlify.com/projects/solid-docs/deploys/6a1cf150a58f9700082da235
😎 Deploy Preview https://deploy-preview-1532--solid-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant