|
| 1 | +*April 17, 2018 at 10am Pacific Time* |
| 2 | + |
| 3 | +### Attendees |
| 4 | + |
| 5 | +- Peggy, Evans, Ben |
| 6 | +- James |
| 7 | + |
| 8 | +### Notes |
| 9 | + |
| 10 | +**apollo-cache improvments** |
| 11 | + |
| 12 | +- inmemory is too slow compared to hermes |
| 13 | +- graphql-anywhere is too slow |
| 14 | +- removed it, so inmemory is now in-charge of graphql resolution |
| 15 | +- nested object read? |
| 16 | +- indentify enties by id? |
| 17 | +- triple equal for objects that are nested? |
| 18 | +- key value prop is get referential equality |
| 19 | +- in the past would lose these reference in the past |
| 20 | + |
| 21 | +**apollo-cache improvments** |
| 22 | + |
| 23 | +- add: benchmarking toggles in the code |
| 24 | +- larger ask: turn request in work queues |
| 25 | + - coordiate with fiber |
| 26 | + - in react native? |
| 27 | +- no way to say: this sub-tree is dormant |
| 28 | +- broadcast query is slow |
| 29 | + - has to recalc everything |
| 30 | + - setting different priorities of updates might fix |
| 31 | +- track the ids and invalidate selectively |
| 32 | + - ex: notification bubble that writes one integer -> causes everything to be updated |
| 33 | + - exchange rates app is good example of React Native app |
| 34 | + |
| 35 | +**apollo errors feeback** |
| 36 | + |
| 37 | +- adequately debuggable |
| 38 | +- server replies with an error |
| 39 | +- message field has a json object overloads message |
| 40 | +- error link dispatches some navigation -> will null out the response |
| 41 | +- dev support around codes |
| 42 | +- stacktraces that come from react app are inscrutible |
| 43 | +- what's coming from the server is interesting |
| 44 | +- distinguish between errors |
| 45 | +- currently have an open enum |
| 46 | +- declare a bunch of string constants |
| 47 | +- when sees code that it doesn't know about shows general error |
| 48 | +- message, localizedMessage, code |
| 49 | +- localized is the one we can show |
| 50 | +- errors raised from store procedures |
| 51 | +- include something like localized/developer oriented messaged |
| 52 | + |
| 53 | +**offline** |
| 54 | +- store mutations across cold restarts |
| 55 | +- cache/link/client need to be coordinated |
| 56 | +- standardize how we serialize |
| 57 | + |
| 58 | +**apollo-link-state + cache-persist** |
| 59 | +- state: migration of state between different versions of the application |
| 60 | +- apollo-link-state with cache-persist: confusion is that they need to wait for the persist to finish storing |
| 61 | +- write the defaults at initialization: cache-persist doesn't pick up the |
| 62 | +- timing around all three pieces fit together |
| 63 | +- add lifecycle methods to the client would help |
| 64 | +- when it's time to do AC 3.x -> figure out all of the store behind offline |
| 65 | + |
| 66 | +**ssr + cache-persist** |
| 67 | +- ssr with cache persist |
| 68 | +- extract during ssr |
| 69 | +- use persist or server render |
| 70 | +- merge what comes from server + persist |
| 71 | +- most people using what comes from the server |
| 72 | +- next example clobbers the cache |
| 73 | +- if link-state modifies the data -> can't use the server data |
| 74 | +- differs around how the cache is stored, so can't merge the data |
| 75 | +- cache-persist: very convenient for cold startups |
| 76 | + |
| 77 | +**relay** |
| 78 | + |
| 79 | +- might plan a fork |
0 commit comments