Skip to content

fix($state): populate default params in .transitionTo. closes #1396 #1432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed

fix($state): populate default params in .transitionTo. closes #1396 #1432

wants to merge 8 commits into from

Conversation

christopherthielen
Copy link
Contributor

No description provided.

@christopherthielen
Copy link
Contributor Author

@nateabele I added a Param class in christopherthielen/params-class branch and merged/ported the default params code for $state. Let me know what you think of the Params class.

Ignore the excess commits, I left them there in case it might be easier to merge into new.

type: type,
config: config,
dynamic: undefined,
isOptional: defaultValueConfig.value !== undefined,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not yet satisfied with this logic. this means paramName: undefined is not optional but paramName: null is optional

@christopherthielen
Copy link
Contributor Author

Also, FYI I'm looking for a design review of Param class as opposed to a PR review.

@christopherthielen
Copy link
Contributor Author

closing in lieu of #1443

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.

1 participant