Skip to content

ci: ignore copyright year in nitrogen validation#101

Merged
mfazekas merged 1 commit intomainfrom
ci/ignore-nitrogen-copyright-year
Jan 5, 2026
Merged

ci: ignore copyright year in nitrogen validation#101
mfazekas merged 1 commit intomainfrom
ci/ignore-nitrogen-copyright-year

Conversation

@mfazekas
Copy link
Copy Markdown
Collaborator

@mfazekas mfazekas commented Jan 5, 2026

Remove duplicate nitrogen validation from build-library job and add -I flag to ignore copyright year line changes in generated files.

Simplify CI by removing duplicate validation from build-library job
and adding -I flag to ignore copyright year line changes.
@mfazekas mfazekas merged commit 8a81a39 into main Jan 5, 2026
7 checks passed
@mfazekas mfazekas deleted the ci/ignore-nitrogen-copyright-year branch January 5, 2026 13:48
mfazekas added a commit that referenced this pull request Jan 5, 2026
## Summary
- `useRiveFile({uri: 'https://...'})` caused infinite re-renders as the
input was not stable, causing useEffect to run, which caused
setResult(..), which triggered another render...

Fixes #99

**Note:** Includes #101 (CI: ignore nitrogen copyright year changes)

## Test plan
- [x] `yarn test` passes
- [x] `yarn typecheck` passes
- [x] `yarn lint` passes

<details>
<summary>Reproducer (not checked in)</summary>

```tsx
'use no memo';

import { View, StyleSheet } from 'react-native';
import { RiveView, useRiveFile, Fit } from '@rive-app/react-native';
import { useRef } from 'react';

export default function Issue99Reproducer() {
  const renderCount = useRef(0);
  renderCount.current++;
  console.log('Issue99Reproducer render count:', renderCount.current);

  // Previously this would cause infinite re-renders because inline objects
  // create new references each render. Fixed by using stable inputKey in useRiveFile.
  const { riveFile } = useRiveFile({
    uri: 'https://cdn.rive.app/animations/vehicles.riv',
  });

  return (
    <View style={styles.container}>
      {riveFile && (
        <RiveView
          autoPlay={true}
          fit={Fit.Contain}
          file={riveFile}
          onError={(error) => console.error('Rive error:', error.message)}
          style={styles.rive}
        />
      )}
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
  rive: {
    width: '100%',
    height: '100%',
  },
});
```

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants