chattling
chattling
I'm getting this error with React 17.0.1 after removing "import React from 'react'". If I put the import of React back into code, it works. Looks like subscribeToMore does not...
@detorresvc I assume as part of upgrading to React 17 you removed "import React from 'react'". I found that subscribeToMore does not always support it. Try putting "import React from...
@dhavaljardosh How about this: ``` const [getComment] = useLazyQuery(getCommentsQuery, { onCompleted: data => { setAllComments(data.getPost.comments) // re-renders } }); useEffect(() => { getComment({ variables: { input: { id: "5e5cb512e90bd40017385305", },...
@Phoenix1405, the working design pattern would be to set state inside onCompleted event and you don't need to destructure loading and data, see example above.
It probably called only once in Network tab of browser dev tools. However useEffect will cause it to be called multiple times. The reason it shows called only once in...
> But the mutation of the passed objects will be removed in the future. How soon? I now migrated from React Apollo 2.6 to 3.1 and in new version Apollo...
For those coming here due to issue I mentioned earlier (incompatibility with @apollo/client). I have found a temporary workaround. Just to give some background first, Apollo has consolidated all their...
> Worked for me: > https://stackoverflow.com/questions/59648434/material-table-typeerror-cannot-add-property-tabledata-object-is-not-extensibl It works only in some cases. Also same solution was given above by @da1z. As I explained above in my case I have tree...
> PS: Object.assign can also be used if you use mutations. Just use `newRow = Object.assign(oldRow, dataFromMutation)` While it is possible, it is very complex and will have impact on...
> how did you make it work? When I using apollo-cache-inmemory I get this error: > > ``` > Type 'InMemoryCache' is missing the following properties from type 'ApolloCache': identify,...