Class attribute not cleared when re-using elements from cache pool
See original GitHub issueI am hitting a very weird and difficult to reproduce bug. It would be nice to have a Slack, Gitter or IRC channel for preact where I can collaborate with the community to repro it.
The bug I’m hitting is with Message
Component of linter-ui-default.
It should, according to the code produce messages like this, and it does
but after a few dozen render
triggers, it becomes this
Nothing on our component side changes, I believe the bug to be on preact’s side
Update
After an hour trying to repro, I found out that it’s using the span
elements from linter-eslint
that it had recycled, and it’s passing the same without clearing their class attribute
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Object Reuse - Java Performance Tuning [Book] - O'Reilly
Pool Management Most container objects (e.g., Vector s, Hashtable s) can be reused rather than created and thrown away. Of course, while you...
Read more >Effective Kotlin Item 47: Avoid unnecessary object creation
Object creation always costs something and can sometimes be expensive. This is why avoiding unnecessary object creation can be an important optimization.
Read more >HttpContext.Current.Cache - When does this gets cleared ...
The cache is held in memory until the process is stopped. So, resetting IIS or recycling the application pool would also clear the...
Read more >Re-usable Objects Cache (-reusableObjects)
Use Re-usable Objects Cache ( -reusableObjects ) to specify the number of deleted class objects that the AVM stores for later re-initialization.
Read more >Commands for using cache pools and directives
Cache Directives are identified by a unique, non-repeating, 64-bit integer ID. IDs will not be reused even if a Cache Directive is removed....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
nevermind, found it
the new chat is at preact.slack.com
you must sign up from https://preact-slack.now.sh instead
@developit - gitter.im/developit/preact doesn’t seem to exist. is there a replacement?