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

Feature: add additional params get hooks and post hook #40

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

JuraJuki
Copy link
Contributor

@JuraJuki JuraJuki commented Aug 25, 2020

This PR contains additional params for get and post hooks. Its been merged from #33, #40 and master. Going to close PR #33 now. Everything should be tracked here from now on

@JuraJuki JuraJuki requested a review from renatoruk August 25, 2020 10:40
@renatoruk
Copy link
Contributor

renatoruk commented Sep 8, 2020

@JuraJuki Can we resolve conflicts first and track everything at #33 ?

@JuraJuki JuraJuki changed the base branch from feat/use-post/additional-param to master September 9, 2020 07:22
@JuraJuki JuraJuki changed the title Feature: add additional params get hooks Feature: add additional params get hooks and post hook Sep 9, 2020
@JuraJuki
Copy link
Contributor Author

JuraJuki commented Sep 9, 2020

@JuraJuki Can we resolve conflicts first and track everything at #33 ?

Resolved conflicts, merged master, and closed #33. Everything can be tracked here now. I realised now.. that this is not you wanted just, forgive me. Merged things in the wrong PR. But in the end, it is the same result. Either everything would have been on #33 or here.

Get tests are failing now after the merge. I could manage to solve the issue, all of sudden there is an async await error.

includes?: string[];
headers?: { [key: string]: string };
additionalUrlParam?: string;
a: number;
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably redundant a? 😄

@@ -39,7 +48,7 @@ export const usePost = <
});
});
},
[apiActionHandler, dispatch],
[apiActionHandler, dispatch, headers],
Copy link
Contributor

Choose a reason for hiding this comment

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

@JuraJuki Check the annotation of the PR below this comment. It says that it has a missing dependency!

@renatoruk
Copy link
Contributor

This PR is very meaningful, but it needs some additional work. Currently, it has a few merge conflicts so maybe we start from there?

…al-params

# Conflicts:
#	src/hooks/useGet.ts
#	src/hooks/useGetAll.ts
#	src/hooks/useGetAllControlled.ts
#	src/json-api-client/ApiActionHandler.ts
#	src/services/ApiActionCreator/ApiActionCreator.ts
#	src/services/ApiActionCreator/interfaces/CreateApiActionConfigParam.ts
#	src/tests/deleteHookTests.test.tsx
@JuraJuki
Copy link
Contributor Author

This PR is very meaningful, but it needs some additional work. Currently, it has a few merge conflicts so maybe we start from there?

Yes, merged the conflict's solution. What do you think are the next steps?

@renatoruk
Copy link
Contributor

This PR is very meaningful, but it needs some additional work. Currently, it has a few merge conflicts so maybe we start from there?

Yes, merged the conflict's solution. What do you think are the next steps?

For now, getting the tests to work. Can we use a different approach for the failing test?

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.

2 participants