Skip to content

Show signals created outside of reactive context #209

Description

@smaranjit

project created with npx degit solidjs/templates/js my-app

Here is the code for App.jsx

import { createSignal } from 'solid-js';

const [input, setInput] = createSignal(1);

function App() {
  return (
    <div>
      Current Value {input()}
      <button onClick={(event)=>setInput(input()+1)}>Increment</button>
    </div>
  );
}

export default App;

and configuration for vite.config.js

import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
import devtools from 'solid-devtools/vite'

export default defineConfig({
  plugins: [
    devtools({
      autoname: true,
    }),
    solidPlugin()],
  server: {
    port: 3000,
  },
  build: {
    target: 'esnext',
  },
});

installed package details-

  "devDependencies": {
    "solid-devtools": "^0.24.7",
    "vite": "^4.1.1",
    "vite-plugin-solid": "^2.5.0"
  },
  "dependencies": {
    "solid-js": "^1.6.10"
  }

screenshot of the dev tool
solidjs-devtool-issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeston holdThis issue is still being considered—but it's development is postponed.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions