react-select-async-paginate icon indicating copy to clipboard operation
react-select-async-paginate copied to clipboard

automatic close when use Apollo FetchMore

Open shipcake opened this issue 3 years ago • 1 comments

FAQ

  1. How can I clean all cached options?
  • Check cacheUniq param in versions < 0.4.x and cacheUniqs in 0.4.x

Are you submitting a bug report or a feature request or a question?

bug and question

What is the current behavior?

how to work together with apollo fetch more update options in useQuery chache and fill in options. but I found bug when fetchMore is complete update chache into Apollo cache in first render.

user click opening option in first time -> apollo use fetchMore to update apollo chahe -> option will close

when I clicked again. data will be correct render.

chrome-capture

What is the expected behavior?

use fine with apollo fetchMore and rerender correctly

What's your environment?

"react-select": "^4.3.0", "react-select-async-paginate": "^0.5.3", "@apollo/client": "^3.3.13", "next": "10.1.2", "react": "17.0.2",

Other information

shipcake avatar May 25 '21 17:05 shipcake

Hi. Make please example on codesandbox.

vtaits avatar May 26 '21 10:05 vtaits