Tags: Snapchat/react-camera-kit
Tags
fix: clear lens cache on re-bootstrap (#5) ## Summary - Fix stale lens references after SDK re-initialization: the lens cache retained objects from the old `lensRepository`, causing `fetchLens` to return lenses bound to a destroyed kit instance - Clear `lensCache` and reset `lenses` state at the start of the bootstrap effect, before the new kit is created ## Test plan - [ ] New test: "should clear lens cache on re-bootstrap" — verifies that after a `stabilityKey` change triggers re-bootstrap, previously cached lenses are evicted and `fetchLens` calls the new kit's `loadLens` - [ ] Full test suite passes
Bump version to 0.1.0, add repo metadata, align demo deps (#1) - Bump package version from 0.0.2 to 0.1.0 - Add repository and homepage fields to package.json - Update demo @snap/camera-kit from ^1.11.0 to ^1.13.0 to match peer dep