Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2b96b2f

Browse files
update
1 parent 04d8208 commit 2b96b2f

File tree

1 file changed

+1
-1
lines changed
  • packages/use-shader-fx/src/hooks/useBlank

1 file changed

+1
-1
lines changed

‎packages/use-shader-fx/src/hooks/useBlank/index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const useBlank = ({
7979
const render = useCallback(
8080
(rootState: RootState, newValues?: {} & BlankConfig) => {
8181
const { gl, clock, pointer } = rootState;
82-
newValues&& setValues(newValues);
82+
if(newValues) setValues(newValues);
8383
material.uniforms.time.value = clock.getElapsedTime();
8484
material.uniforms.pointer.value.lerp(
8585
pointer,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /