pedro00dk
Solid/reactivity lint rule complains about async custom event handlers
Hello, I'm having some issues with solid eslint plugin regarding custom event handlers.
Just the line above is enough to reproduce it in playground. Is there any way to disable it? Or this could be a bug?
I also checked if this has anything with event delegation as custom events are not delegated and it does not seem so:
3 replies
Solid-refresh with Webpack HMR errors
Hello, I'm trying to integrate solid-refresh in a webpack based solid-js app to make development a bit easier. The app is a microfrontend and we used module federation in the company I work on, so I can't just use other bundlers. Unfortunately, I haven't found any templates or projects with this setup.
The following are some pieces from the webpack config I think might be relevant to figure the issue out.
The application starts and works normally, however, webpack displays a warning and error when I make a change. Browser logs:
I appreciate any help, please let me know if any additional data is needed.
2 replies
Solid-js router 0.10.x cache invalidation
Hi, I started migrating an app from solidjs router 0.9.x and 0.10.x. The new caching and preload features are nice, but I'm having some trouble with testing.
In my test setup I intercept API requests and inject different stubs for different tests. Since the tests run fast, the new solid router
cache
function does not invalidate the cache from one test to the next, causing some tests to get API responses made for previous tests when making the same API requests.
I looked at the source code of cache
and there seems to be no way to invalidate the entire cache. I saw that there is a cache.set
function there but it seems it can't be used for invalidating individual caches. Are there other tricks I can use to achieve this behavior?
I really don't want to change components' code to fetch without caching for tests, so it would be interesting to have some sort of cache.clear
to invalidate the entire cache for testing purposes.6 replies