|
1 | 1 | *February 6, 2018 at 10am Pacific Time* |
2 | 2 |
|
3 | 3 | ### Attendees |
4 | | -*Added during the meeting* |
| 4 | +- Dirk |
| 5 | +- Evans, Sashko (in SF) |
| 6 | +- Peggy |
| 7 | +- Daniel |
5 | 8 |
|
6 | 9 | ### Agenda |
7 | 10 |
|
|
15 | 18 | - Thoughts on supporting the new react context API in v2.1. |
16 | 19 | - Thoughts on creating a monorepo (as mentioned in [roadmap](https://github.com/apollographql/react-apollo/blob/master/ROADMAP.md) or merging react-apollo with the existing apollo-client monorepo (which will simplify coordination across modules). |
17 | 20 |
|
| 21 | +**Graphql-js** |
| 22 | + |
| 23 | +- How many version of graphql-js to support? |
| 24 | + |
18 | 25 | **Opportunities to Collaborate** |
19 | 26 |
|
20 | 27 | - apollo-link-mock: accepts a schema and returns values for every field in your query |
|
23 | 30 | - brainstorm how to make these meetings more accessible |
24 | 31 |
|
25 | 32 | ### Notes |
26 | | -*Added after the meeting* |
| 33 | + |
| 34 | +**Async Rendering** |
| 35 | + |
| 36 | +- Yesterday Peggy met with React team |
| 37 | +- Async rendering fiber |
| 38 | +- today setState is synchronous, processed in a queue |
| 39 | +- fiber the updates can be prioritized, rendering can be paused or interrupted |
| 40 | + - problems for libraries that take data flow out of react |
| 41 | + - mobx, apollo |
| 42 | +- not a big deal, apollo is well prepared for the change |
| 43 | +- suggest a record of updates that are coming |
| 44 | +- we do it with optimistic UI |
| 45 | +- can't measure level of muation tearing until fiber arrives in 16.4 |
| 46 | +- new features to test in beta in about 4 weeks |
| 47 | +- what mean by mutation tearing |
| 48 | + - can't benefit from prioritization |
| 49 | + - can't garuntee what the order of changes are if you use priorities |
| 50 | +- could maybe use react api's to manage cache state |
| 51 | +- Redux, Mobx will need to update |
| 52 | +- What about a migration guide? |
| 53 | +- Redux maintainers are a bit conflicted |
| 54 | +- Migration path will be easier for Apollo users |
| 55 | +- Much bigger update that original React 16 |
| 56 | +- Changes with lifecycle methods |
| 57 | +- 16.4 will add asyncboundaries |
| 58 | +- warnings about lifecycle methods |
| 59 | +- Apollo is working closely with React |
| 60 | +- React excited to make sync rendering work with everyone |
| 61 | + |
| 62 | +Context Change |
| 63 | + |
| 64 | +- new context changes will be release in the next week or so |
| 65 | +- don't have to worry about ShouldComponenntUpdate |
| 66 | +- polyfill by James Ryan -> use for beta |
| 67 | +- Apollo consumer components generate provider and consumer components |
| 68 | +- won't need many new changes just with new API |
| 69 | + |
| 70 | +Strict Mode |
| 71 | + |
| 72 | +- James: try strict mode? to make sure we are async ready |
| 73 | +- It's in 16.3? opt in to see if we'll have things break when 16.4 hits |
| 74 | +- The blog post should be out this week, James will post to maintainers group |
| 75 | + |
| 76 | +**React-apollo** |
| 77 | + |
| 78 | +- Good progress |
| 79 | +- Concerns about Mutation component |
| 80 | +- many mutations in sequence |
| 81 | +- update to force component to return most recent data (last week) |
| 82 | +- James handles the 80% use case |
| 83 | +- can manage outside state on your own |
| 84 | +- return Promise from mutation |
| 85 | +- makes the error/loading state much more explicit |
| 86 | + |
| 87 | +Subscription Component |
| 88 | + |
| 89 | +- Daniel has global subscriptions to update data used across all views |
| 90 | +- Subscriptions component in the repo |
| 91 | +- Push pause on Sub component, since may be issues with re rendering thousand of times |
| 92 | +- remote operation |
| 93 | +- Documentation needs to be updated for 2.1 |
| 94 | +- Peggy internal doc about docs that will be shared to improve documentation |
| 95 | +- Heard that apollo is hard to get started with |
| 96 | +- imporving getting started guid |
| 97 | +- improving apollo-client-preset |
| 98 | +- one stop shop that is easy to get started |
| 99 | +- done by middle of next week |
| 100 | +- list of topics of basics goes on forever |
| 101 | +- tech debt with AC 2, so need to make documentation up to date |
| 102 | +- Refactoring to render props is a good |
| 103 | +- uses react-apollo and graphql-tag together, so should export them together |
| 104 | +- right now have to install separately |
| 105 | +- with .graphql files won't need to use graphql-tag? |
| 106 | +- may be able to split out graphql-tag with turning on a side-effects flag |
| 107 | +- gql does not require a build step |
| 108 | +- create-react-app can bring in .graphql files |
| 109 | +- write a blog post! |
| 110 | +- add graphql-tag into react-apollo |
| 111 | +- get react-apollo out of beta next week(Wednesday to get it out) |
| 112 | +- monorepo is not needed, so keep them separate for now |
| 113 | +- include react-apollo inside of the apollo-client repo? |
| 114 | +- Sashko => disadvantage since there is a split, due to the communities around other view layer integrations |
| 115 | +- type upgrade in react apollo and some of the apollo-client was incorrectly typed -> would have been nice to do directly |
| 116 | +- nightly builds of each view level integrations becuase can use cron jobs on Travis CI |
| 117 | +- open issues automatically |
| 118 | +- can do custom build scripts |
| 119 | +- keep things in master in about a week(5 day release cycle at max) |
| 120 | + |
| 121 | +Action items: write a blog post about create-react-app, react-apollo out of beta Wednesday next week, documenation refactoring |
| 122 | + |
| 123 | +**Graphql-js** |
| 124 | + |
| 125 | +- Should really be on a non 0.x |
| 126 | +- also test on the master of graphql-js with our automated travis-ci nightly |
| 127 | +- most recent and the previous version |
| 128 | +- Daniel: unless there is a new feature that we need, then stable software is the best |
| 129 | +- two options: time horizon or version nubmer |
| 130 | +- 6 months back or 2 versions previously |
| 131 | +- James proposal: prior to 1.0 we support the last two version at minimum |
| 132 | +- if gets to major, then we support the most recent major package |
| 133 | +- There is a changelog now! |
| 134 | +- 2 breaking changes |
| 135 | +- came up with subscriptions library |
| 136 | +- instanceof check is the issue |
| 137 | + |
| 138 | +Action items: talk to Lee, two version back, and nightly builds (need to have an announced strategy) |
| 139 | + |
| 140 | +Wanted: unit test library where you could change the version of single dependency |
| 141 | + |
| 142 | +**Opportunities to Collaborate** |
| 143 | + |
| 144 | +- Community may be doing something similar to apollo-link-mock, Peggy will be in touch |
0 commit comments