Comments (4)
I cannot reproduce it, I guess it's caused by the timer.
I cleared the timer in componentWillUnmount, v5.8.3 may fix this issue.
from select2-component.
That update did not fix it. I cannot really see where exactly this gets triggered, but it only happens the first time.
Here is an expanded version of the error:
Warning: Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
in Select2 (created by UserFilterEdit)
in div (created by UserFilterEdit)
in UserFilterEdit (created by EditFilter)
in div (created by EditFilter)
in EditFilter (created by FiltersEditContainer)
in div (created by FiltersEditContainer)
in div (created by FiltersEditContainer)
in div (created by FiltersEditContainer)
in FiltersEditContainer (created by FiltersSection)
r @ backend.js:6
warningWithoutStack @ react-dom.development.js?61bb:512
warnAboutUpdateOnUnmounted @ react-dom.development.js?61bb:15630
scheduleWork @ react-dom.development.js?61bb:16927
enqueueSetState @ react-dom.development.js?61bb:11623
Component.setState @ react.development.js?72d0:413
eval @ select2.js?7c77:216
setTimeout (async)
Select2.focusout @ select2.js?7c77:214
onBlur @ select2.js?7c77:102
callCallback @ react-dom.development.js?61bb:145
invokeGuardedCallbackDev @ react-dom.development.js?61bb:195
invokeGuardedCallback @ react-dom.development.js?61bb:248
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js?61bb:262
executeDispatch @ react-dom.development.js?61bb:593
executeDispatchesInOrder @ react-dom.development.js?61bb:615
executeDispatchesAndRelease @ react-dom.development.js?61bb:713
executeDispatchesAndReleaseTopLevel @ react-dom.development.js?61bb:724
forEachAccumulated @ react-dom.development.js?61bb:694
runEventsInBatch @ react-dom.development.js?61bb:855
runExtractedEventsInBatch @ react-dom.development.js?61bb:864
handleTopLevel @ react-dom.development.js?61bb:4857
batchedUpdates$1 @ react-dom.development.js?61bb:17498
batchedUpdates @ react-dom.development.js?61bb:2189
dispatchEvent @ react-dom.development.js?61bb:4936
interactiveUpdates$1 @ react-dom.development.js?61bb:17553
interactiveUpdates @ react-dom.development.js?61bb:2208
dispatchInteractiveEvent @ react-dom.development.js?61bb:4913
Is there a way i can get you a log file that would be useful?
from select2-component.
Another try of v5.8.4
from select2-component.
5.8.4 fixed it! Many thanks!
from select2-component.
Related Issues (20)
- "groupOrOption is undefined" with angular 7 HOT 2
- Dynamic data still hides search HOT 2
- Dropdowns dont stay open when clicking scroll-handle HOT 1
- Request to run with Typescript < 3.7 HOT 3
- Select2Option.Classes ignored HOT 2
- Will minimumInputLength be supported? HOT 2
- SearchInput gets cleared when closing the dropdown HOT 2
- Unable to set Value when dynamically loading options HOT 1
- Close the dropdown, if selection was done outside the component?
- Update options for select HOT 3
- Dropdown scrolling bug HOT 1
- Allow custom/new value HOT 6
- possibility to add className and id
- multiple warnings with react hooks
- React gives Unable to find node on an unmounted component HOT 5
- React component doesn't show label for default value
- I can use the theme bootstrap for this select2 ? HOT 1
- Unable to clear a selection
- how to clear the selection value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from select2-component.