falcor icon indicating copy to clipboard operation
falcor copied to clipboard

surprising the boxed values leak in `getCache()`

Open stefanpenner opened this issue 10 years ago • 1 comments

I was abit surprised that boxed values leaked out when using getCache(). I would have assumed this would only happen via something more explicit, maybe model.boxValues().getCache()

stefanpenner avatar Jul 05 '15 02:07 stefanpenner

Valid point. The assumption is that this method will only be used to serialize state (in which case you'd want to preseve any metadat). That could perhaps be better reflected in the name of the method.

jhusain avatar Jul 07 '15 17:07 jhusain