Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: make meta optional as documented#106

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JaKXz merged 1 commit intoredux-utilities:masterfromArelav:master
May 7, 2018

Conversation

@Arelav
Copy link
Contributor

I'm providing with pull request a little example how it can be used with action creators. Because in current implementation action creator must return 'meta' explicit.

Link to Typescript playground

I'm providing with pull request a little example how it can be used with action creators. Because in current implementation action creator must return 'meta' explicit.
Copy link
Contributor

@JaKXzJaKXz left a comment
edited
Loading

Choose a reason for hiding this comment

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

@Arelav thank you for the PR. I want to hold back on merging ATM because CI is disconnected.

One thing to note, this has been discussed many times before, e.g.#70#58#53#76#94

@jack-guy
Copy link

I think this should get merged! Clearly with the number of times this has come up, TypeScript users are generally confused that the type definitions do not match the documentation. If a property is truly optional, likemeta, it should be defined with a question markmeta?: so we aren't littering our actions with

{type:'foo',meta:null,}

Incidentally, DefinitelyTypedhas always had this right.

By the way, we should technically be doing the same for payload as well...

@npoirey
Copy link

I agree, we should merge this and do the same for payload

@JaKXzJaKXz merged commit327d03c intoredux-utilities:masterMay 7, 2018
@JaKXz
Copy link
Contributor

Sorry for the delay in getting this merged! I will have a patch released with teh fix for payload as well today.

@JaKXz
Copy link
Contributor

+ flux-standard-action@2.0.3 published! Thank you for your patience everyone.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@JaKXzJaKXzJaKXz left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@Arelav@jack-guy@npoirey@JaKXz

[8]ページ先頭

©2009-2025 Movatter.jp