question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Class attribute not cleared when re-using elements from cache pool

See original GitHub issue

I 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

screen shot 2016-03-16 at 7 22 46 pm

but after a few dozen render triggers, it becomes this

screen shot 2016-03-16 at 7 22 34 pm

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:closed
  • Created 8 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
StoneCyphercommented, Feb 7, 2019

nevermind, found it

the new chat is at preact.slack.com

you must sign up from https://preact-slack.now.sh instead

0reactions
StoneCyphercommented, Feb 7, 2019

@developit - gitter.im/developit/preact doesn’t seem to exist. is there a replacement?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found