Availity/availity-reactstrap-validation

Warning: Legacy context API has been detected within a strict-mode tree.

tron135 opened this issue · 1 comments

Getting this issue while using availity-reactstrap-validation:

**index.js:1 Warning: Legacy context API has been detected within a strict-mode tree.

The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.

Please update the following components: AvCheckbox, AvCheckboxGroup, AvFeedback, AvField, AvForm, AvGroup, AvInput

Learn more about this warning here: https://fb.me/react-legacy-context
in AvForm (at add_client.js:242)
in div (at add_client.js:241)
in div (created by Col)
in Col (at add_client.js:239)
in div (created by Row)
in Row (at add_client.js:238)
in div (created by Container)
in Container (at add_client.js:234)
in add_client (at App.js:7)
in div (at App.js:6)
in App (at src/index.js:10)
in StrictMode (at src/index.js:9)
console. @ index.js:1**

dependency verions are:
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
"availity-reactstrap-validation": "^2.6.1",
"bootstrap": "^4.5.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "3.4.1",
"reactstrap": "^8.4.1"
}

Feel free to submit a PR or migrate to one of our newer form libs on a different validation framework. Availity Form