You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, in fact, you may not need an API like vue. This is a keep-alive function I implemented. It works well and meets all scenarios. Toggle is a substitute for Show.
You can also use object pool technology to cache loops, but these two are different concepts. Although vue is simple, it is actually very confusing.
Each is a substitute for For.
@hex0xf Although your approach can achieve functionality, it lacks cache eviction strategies (which can easily lead to memory leaks) and some advanced features.
Activity
ahzvenol commentedon Dec 7, 2024
I've been waiting for this feature for two years.
You can check it out here: solid-router issue #204.
Currently, I'm using solid-keep-alive as an alternative.
hex0xf commentedon Jan 15, 2025
Yes, in fact, you may not need an API like vue. This is a keep-alive function I implemented. It works well and meets all scenarios. Toggle is a substitute for Show.
You can also use object pool technology to cache loops, but these two are different concepts. Although vue is simple, it is actually very confusing.
Each is a substitute for For.
yibird commentedon Aug 28, 2025
@hex0xf Although your approach can achieve functionality, it lacks cache eviction strategies (which can easily lead to memory leaks) and some advanced features.