Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Jan 9, 2025
1 parent 9b12ea6 commit cafa5b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/SpringContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const SpringContext = makeRenderableContext<
// Memoize the context to avoid unwanted renders.
props = useMemoOne(() => ({ pause, immediate }), [pause, immediate])

return <Context value={props}>{children}</Context>
return <Context.Provider value={props}>{children}</Context.Provider>
},
{} as SpringContext
)
Expand All @@ -51,6 +51,7 @@ function makeRenderableContext<T, P>(
if ('_context' in context.Provider) {
context.Provider._context = context
} else {
// @ts-expect-error
context.Provider = context
}

Expand Down
1 change: 1 addition & 0 deletions targets/three/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ addEffect(() => {
})

const host = createHost(primitives, {
// @ts-expect-error r3f related
applyAnimatedValues: applyProps,
})

Expand Down

0 comments on commit cafa5b8

Please sign in to comment.