1
1
Fork
You've already forked state
0

Add enumeration of state names #2

Closed
opened 2023年08月10日 12:27:55 +02:00 by aral · 1 comment
Owner
Copy link

A property that gives a list of the state names would be useful, for example, when building a debugger where you want to trigger each state without having to hardcode them in your interface.

e.g.,

myState.states

(This would basically involve exposing the inner state object‘s keys; Object.keys(this.state))

A property that gives a list of the state names would be useful, for example, when building a debugger where you want to trigger each state without having to hardcode them in your interface. e.g., ```js myState.states ``` (This would basically involve exposing the inner state object‘s keys; `Object.keys(this.state)`)
Author
Owner
Copy link

This is now possible in v3.0.0 using:

Object.keys(myState.states)

Closing.

This is now possible in v3.0.0 using: ```js Object.keys(myState.states) ``` Closing.
Sign in to join this conversation.
No Branch/Tag specified
main
without-proxy
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
small-tech/state#2
Reference in a new issue
small-tech/state
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?