Skip to content

Model Classes are not immerableΒ #194

@handreyrc

Description

@handreyrc

What would you like to be added?

The workflow model created with SDK 3.0.3 spec 0.8 is class based and do not expose the equivalent based on interfaces.
This approach makes the model incompatible with with typescript / react applications using state management based on immer such as Zustand for instance.

Making model classes immerable or expose an equivalent model structure based on interfaces would make the SDK compatible with those applications and a lot easier to react to model changes.

Proposal(s):

Make 0.8 spec SDK model classes immerable or create / make model interface based.

Alternative(s):

No response

Additional info:

A model based on classes is not immerable and this approach makes the model incompatible with with typescript / react applications using state management based on immer such as Zustand.

Community Notes

  • Please vote by adding a πŸ‘ reaction to the feature to help us prioritize.
  • If you are interested to work on this feature, please leave a comment.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestlegacyRelated to the pre-v1.0.0 Serverless Workflow specification

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions