VanTanev
Repos
76
Followers
42
Following
3

Events

git alias pof

Created at 2 weeks ago
issue comment
Missing license

Great, thank you!

And also kudos for the great library!

Created at 2 weeks ago
opened issue
Missing license

Hello!

We recently looked into adopting this library, but it does not provide a license, which makes it hard to adopt for commercial projects.

Could I ask that you consider adding a license? In my ideal world, one that works for commercial projects, but even if not, it would be nice to have that clearly stated.

Thank you!

Created at 2 weeks ago

nvim and copilot setup

Created at 1 month ago

update aliases

Created at 1 month ago
issue comment
Bug: Functions in initial state keep executing when updating state

You are passing the result of the function into useState():

const [myState, setMyState] = useState(getStarterItem());

You must pass the function itself:

const [myState, setMyState] = useState(getStarterItem);

Relevant part of the docs: https://reactjs.org/docs/hooks-faq.html#should-i-use-one-or-many-state-variables:~:text=To%20avoid%20re%2Dcreating%20the%20ignored%20initial%20state%2C%20we%20can%20pass%20a%20function%20to%20useState%3A

Created at 1 month ago
opened issue
Blank screen with multiple root events

This seems related to https://github.com/statelyai/xstate-viz/issues/279

Inspecting the following machine produces a blank screen in the vscode extension:

import { createMachine } from "xstate";

createMachine({
  on: {
    A: { actions: "a" },
    B: { actions: "b" },
  },
  states: {
    initial: {},
  },
});
Created at 2 months ago