Skip to content

Need an elegant way to get what action you are in #236

Open
@JamesANZ

Description

@JamesANZ

Problem:
When creating a TokenScript that has multiple actions, sometimes you need to know what action you are in so that you can serve unique content. At the moment it is not possible to do this from this.props

Possible solution:
Enable this.props.action.name to return it's name which can then be mapped back to the context of the action you are currently in.

Having to create separate SHTML files for each action just to fulfill this seems bad.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions