electrode-react-ssr-caching icon indicating copy to clipboard operation
electrode-react-ssr-caching copied to clipboard

How to handle func prop types

Open a9a4k opened this issue 8 years ago • 0 comments

Hello! Thanks for this awesome library

If I understand correctly than cache store's key is constructed using JSON.stringify and hashing. However JSON.stringify does not handle function properties.

The problem is that I want to use a simple strategy with most of my dumb components, however I cannot just disregard function props, as the uniqueness of props combination is not guaranteed then.

What do you suggest? I can only think of using a custom genCacheKey function...

a9a4k avatar Nov 15 '17 18:11 a9a4k