Граф коммитов

200 Коммитов

Автор SHA1 Сообщение Дата
Morten Devold ef8457f533 Align graphql dependency to version ^15.0.0 across packages 2021-10-26 13:18:40 +02:00
Eloy Durán 646eef79b1 Revert merge of apollo-fragment-store-watching branch
This reverts commit 5d140f3409.
2021-10-05 10:53:38 +02:00
Eloy Durán d42c82c999 applying package updates 2021-10-05 10:17:41 +02:00
Eloy Durán e8db05bf21 Atempt beachball fix
See https://github.com/microsoft/beachball/issues/603
2021-10-05 10:17:30 +02:00
Eloy Durán b857fcd366 beachball sync 2021-10-05 10:06:45 +02:00
Eloy Durán 9d2a2f88ca Change files 2021-10-04 16:37:47 +02:00
Eloy Durán ed7e736fd6 Prepare for prerelease versions of narrow store observation feature 2021-10-04 16:33:40 +02:00
Eloy Durán 36e5f5bc53 Move all lib code to apollo-react-relay-duct-tape 2021-10-04 16:28:29 +02:00
Eloy Durán aa29c9dbb3 No need to transform useLazyLoadQuery/useFragment hooks, checking their arguments is cheap enough 2021-10-04 16:28:29 +02:00
Eloy Durán 875a106df4 Disable Apollo Client't prefixing of ids with typename 2021-10-04 16:28:29 +02:00
Eloy Durán 93d2a7f421 Use simpler way to add todo to list 2021-10-04 16:28:29 +02:00
Eloy Durán c194d2fad1 Document browser console tests 2021-10-04 16:28:29 +02:00
Eloy Durán 45ddb881b7 Cleanup tests 2021-10-04 16:28:29 +02:00
Eloy Durán 1e91a281fd Transform documents to imports and useFragment to useWatchQuery 2021-10-04 16:28:29 +02:00
Eloy Durán 4d9255d818 Be less negative 2021-10-04 16:26:12 +02:00
Eloy Durán ad49f39428 Return correct loading state from useExecuteAndWatchQuery 2021-10-04 16:26:12 +02:00
Eloy Durán 4485bf1b27 Transform useLazyLoadQuery to useExecuteAndWatchQuery 2021-10-04 16:26:12 +02:00
Eloy Durán 59f7b35e56 Save browser console tests 2021-10-04 16:26:12 +02:00
Eloy Durán 48490bf1ff Bootstrap watch node TS transform 2021-10-04 16:26:12 +02:00
Eloy Durán 316b55dcad Add custom React.memo comparator aware of fragment references 2021-10-04 16:26:12 +02:00
Eloy Durán 73528af5be Insert a few React.memo calls, still need to optimize the TodoList one 2021-10-04 16:26:12 +02:00
Eloy Durán 8e2228b7b9 Log data that each component watches 2021-10-04 16:26:11 +02:00
Eloy Durán 08b9c53d1a Move hook to separate file 2021-10-04 16:26:11 +02:00
Eloy Durán 788ab55533 Manually emit execution query and hookup watch queries 2021-10-04 16:26:11 +02:00
Eloy Durán 0b30bab8b4 Emit @refetchable query for every fragment on a Node type 2021-10-04 16:26:11 +02:00
Eloy Durán 07f75f86ee Do not emit execution documents for watch node queries 2021-10-04 16:26:11 +02:00
Eloy Durán c39bcd6839 Emit execution and watch query documents 2021-10-04 16:26:11 +02:00
Eloy Durán 131200f9ce Manually apply transform on watched node component 2021-10-04 16:26:11 +02:00
Eloy Durán bb762f660b Resolve watched nodes using Apollo Client's type-policy on the Query.node field 2021-10-04 16:26:11 +02:00
Eloy Durán f307afddb7 Emit graphql-js AST for watchNode queries 2021-10-04 16:24:33 +02:00
Eloy Durán b07633e62e Update counts on mutations 2021-10-04 16:24:33 +02:00
Eloy Durán 45b1d2dce7 Switch to SDL first schema so we can have resolver typings 2021-10-04 16:24:33 +02:00
Eloy Durán 2b342cb936 Add completion mutation 2021-10-04 16:23:50 +02:00
Eloy Durán c5b4f5644b Add why-did-you-render 2021-10-04 16:23:50 +02:00
Eloy Durán 539efee67a Add todos 2021-10-04 16:23:50 +02:00
Eloy Durán 454ce218d3 Fragmentize UI 2021-10-04 16:23:50 +02:00
Eloy Durán 21de71a372 Use single @apollo/client version 2021-10-04 16:23:50 +02:00
Eloy Durán 86309b1438 First pass at introducing Relay shims 2021-10-04 15:57:13 +02:00
Eloy Durán 89e4b0dcec [example] Replace CRA with simple manual setup 2021-10-04 15:57:13 +02:00
Eloy Durán b897da2b54 [example] Render list of todos with vanilla Apollo Client 2021-10-04 15:54:43 +02:00
Eloy Durán 9337b7513f Bootstrap TodoMVC html/css 2021-10-04 15:54:42 +02:00
Eloy Durán da1a257b86 Add scaffolding for apollo watch fragments example app 2021-10-04 15:54:42 +02:00
Eloy Durán 5d140f3409 [relay-compiler] Rewrite @watchNode to @refetchable
This allows us to generate queries for fragments we want Apollo to watch separately; like any Relay fragment does.
2021-10-04 15:51:17 +02:00
Graphitation Service Account a3d12ba877 applying package updates 2021-10-04 13:48:04 +00:00
Eloy Durán ceb24aa252
Merge pull request #47 from microsoft/alloy/simplify-tsc-config-requirement
Remove need to configure tsc to allow Set spread.
2021-10-04 15:14:21 +02:00
Eloy Durán bd4f6ad1dc Change files 2021-10-04 15:06:30 +02:00
Eloy Durán 9adec3f393 Remove need to configure tsc to allow Set spread. 2021-10-04 15:05:43 +02:00
Mikhail Novikov 3f511330c9 applying package updates 2021-10-01 15:17:55 +02:00
Mikhail Novikov 74bee8fcb1
Merge pull request #44 from microsoft/mnovikov/ts-transform-graphql-js-tag
ts transform graphql js tag
2021-10-01 14:54:52 +02:00
Mikhail Novikov db4de80c95 Change files 2021-10-01 11:30:24 +02:00