Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Observable query refactor #211

Merged
merged 15 commits into from
Oct 8, 2016
Merged

Observable query refactor #211

merged 15 commits into from
Oct 8, 2016

Conversation

tmeasday
Copy link
Contributor

@tmeasday tmeasday commented Sep 14, 2016

@jbaxleyiii this is just a first pass for you to look at, still a bit more to do (see XXXs in code and some notes I will leave now).

I welcome any comments you have at this stage though!

(Note that this branch runs with the add-observable-query-current-result branch of AC)

@tmeasday
Copy link
Contributor Author

Also some of the commits you may want to cherry pick, especially e2b9587

@@ -496,13 +496,16 @@ export interface UpdateQueryOptions {
}
export class ObservableQuery extends Observable<ApolloQueryResult> {
refetch: (variables?: any) => Promise<ApolloQueryResult>;
setVariables: (variables: any) => Promise<ApolloQueryResult>;
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 manually copied this over from apollo-client -- I'm not sure what the correct procedure is.

@tmeasday
Copy link
Contributor Author

@jbaxleyiii I think this is more or less done as I was hoping now. When you have a moment to look at this could you take a look? I'll wait for your approval before merging the changes to AC and ultimately these into RA.

Also, you would have seen apollographql/apollo-client#707 which is relevant and something I'll look at soon.

@jbaxleyiii
Copy link
Contributor

@tmeasday 🎉 awesome! I'll take some time today to investigate it and look around!

@tmeasday tmeasday changed the title Observable query refactor [WIP] Observable query refactor Sep 30, 2016
@tmeasday
Copy link
Contributor Author

🎉 ready to go 🎉

@jbaxleyiii
Copy link
Contributor

@tmeasday I totally missed your rebase! I'm super sorry! I'll rebase it after the recent changes!

@jbaxleyiii
Copy link
Contributor

@tmeasday -9,170 bytes (-49.38%) → 18,570 bytes size reduction ftw!!

@jbaxleyiii jbaxleyiii merged commit 246eca0 into master Oct 8, 2016
@jbaxleyiii jbaxleyiii deleted the observableQuery-refactor branch October 8, 2016 02:36
@jbaxleyiii
Copy link
Contributor

@tmeasday fantastic work!

@stubailo
Copy link
Contributor

stubailo commented Oct 8, 2016

Wow this is crazy! Awesome.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants