Giter Club home page Giter Club logo

txstate's Issues

On top of my head / Minor issues

  • txstate right now assumes the machine definition is a literal, in case it's not like initial: Math.random() > 0.5 > "a" : "b" thing most probably will malfunction, so gotta do something about that
  • Make all custom error use A.CustomError
  • Transitions...
    • Support [{ target: "x" }, "y"] Edit: Ugh isn't this already supported? TODO: check
    • Disallow stupid stuff like
      • { target: [] }
      • [{ target: "a" /* no guard */ }, { target: "b" }]
      • internal: true for strictly external transitions
      • more...
  • When an required property is missing the errors are horrible, try showing custom errors for those cases too
  • Guarded recursion. Sometimes in an errored machine the recursion becomes infinite to prevent that we'll recurse with a fixed limit

Typescript 4.4.0 regression

Mainly all functional properties turn into unknown in the return type, more precisely the return type of createMachine is Machine.Of<MachineDefinition.Of<D>> instead of Machine.Of<D> (even if there are no errors in the definition)

Support xstate v5's `initial`

Right now initial can only be an identifier of one the child states, but starting from v5 initial can be { target, actions } too

Transition

  • Support [{ target: "x" }, "y"]
  • Disallow stupid stuff like
    • { target: [] }
    • [{ target: "a" /* no guard */ }, { target: "b" }]
    • more...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.