-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage of native node-module Buffer increase bundle size with 19kb #142
Comments
Good idea, however, we need to save more information, something like:
🤔 |
@marcin-piela To me it looks like the const add = (action: Action, value: T) => {
if (isCacheable(action)) {
items[convertActionToBase64(action)] = { ...value, timestamp: Date.now() };
}
}; But yes, maybe more info should be used in the key, but it could be that it would be better that an action could contain a cache key, like how The big problem with the current solution is that even when creating your own CacheProvider, direct imports of |
It also creates a problem on 5.0.0 version of |
You're not saying why you need to save more information |
This simple line in cache.ts will make webpack bundle an extra 19 kb shim for client-side scripts:
Would it not be better to use a simple string concat like this:
The text was updated successfully, but these errors were encountered: