You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An entrypoint is two things: query text and normalization AST
We do not need the normalization AST to make the network request, just the query text
We should split this into two files, with the entrypoint (containing the query text) importing the file with the normalization AST.
The files should be named Type/field/entrypoint.ts (containing the query text) and /normalization.ts, containing the normalization AST.
Follow up:
This unblocks the following:
This will make it possible to asynchronously load the normalization AST, for example right after the query text is loaded, when the network request is made or when the network response is received
We do not want to asynchronously load the normalization AST, as not having the normalization AST means that we cannot determine whether the network request can be completed from the store, so there is a legitimate use case for bundling the normalization AST (i.e. with a regular import) with the query text
The text was updated successfully, but these errors were encountered:
Problem and solution
Type/field/entrypoint.ts
(containing the query text) and/normalization.ts
, containing the normalization AST.Follow up:
This unblocks the following:
The text was updated successfully, but these errors were encountered: