Skip to content
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

Make table form of mapDispatchToProps work with callable table actionCreators #73

Merged
merged 8 commits into from
Oct 8, 2024

Conversation

tonycuadra
Copy link
Contributor

No description provided.

@@ -164,20 +172,20 @@ local function connect<StoreState, Props, MappedStatePartialProps, MappedDispatc
end

local mappedStoreDispatch: any
if mapDispatchType == "table" then
if isCallable(mapDispatchToProps) then
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 swapped the order of the if / elseif checks here because a table can still be callable

@tonycuadra
Copy link
Contributor Author

I got all the static checks passing again but it looks like I don't have permission to merge the change in this repo. @jkelaty-rbx can you merge?

Copy link

github-actions bot commented Oct 8, 2024

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@coveralls
Copy link

Coverage Status

coverage: 31.387%. first build
when pulling 1e8a0c0 on tonycuadra:tcuadra/fix-function-checks
into 381f87d on Roblox:master.

@jkelaty-rbx jkelaty-rbx merged commit 674cecc into Roblox:master Oct 8, 2024
3 checks passed
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