vtaits / react-select-async-paginate

Wrapper above react-select that supports pagination on menu scroll
MIT License
308 stars 75 forks source link

WithAsyncPaginate.defaultProps is going to be deprecated in react 18.3.0 #147

Closed turtletongue closed 1 year ago

turtletongue commented 1 year ago

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

Bug report

What is the current behavior?

A warning appears in the console.

image

What is the expected behavior?

No warning.

Sandbox Link

https://codesandbox.io/s/creatable-example-forked-3ydgl3

What's your environment?

"react": "18.2.0", "react-dom": "18.2.0", "react-select": "5.7.2", "react-select-async-paginate": "0.7.2"

Other information

Links to React PR and ESLint change: https://github.com/facebook/react/pull/25699 https://github.com/jsx-eslint/eslint-plugin-react/issues/2396

Similar issues: JedWatson/react-select#5596 chakra-ui/chakra-ui#7057

vtaits commented 1 year ago

Hello. Fixed in 0.7.3