Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@smwhr
Copy link
Collaborator

@smwhr smwhr commented Apr 4, 2025

Checklist

  • The new code additions passed the tests (npm test).
  • The linter ran and found no issues (npm run-script lint).

Description

#1058

You can now list all global variables (VAR and LIST) using Object.keys(story.variablesState)

@smwhr smwhr merged commit aaedf2b into master Apr 5, 2025
1 check passed
@smwhr smwhr deleted the feat/list-all-global-variables branch April 5, 2025 14:26
@Anton-2
Copy link

Anton-2 commented Nov 20, 2025

Thanks for this !

And a warning for those who, like me, are going to copy paste the example blindly :
it is: Object.keys(story.variablesState), the example miss the S in variablesState.

@smwhr
Copy link
Collaborator Author

smwhr commented Nov 23, 2025

Sorry about that ! 🫣

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.

3 participants