react_globe_gl_lifecycle_and_props
Manages the lifecycle and configuration of a reusable Globe.gl component in Next.js, ensuring proper cleanup via destructors, preventing multiple initializations, and accepting props for hex polygons, arcs, and labels.
npx skills add ECNU-ICALK/AutoSkill --skill react_globe_gl_lifecycle_and_props --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# react_globe_gl_lifecycle_and_props Manages the lifecycle and configuration of a reusable Globe.gl component in Next.js, ensuring proper cleanup via destructors, preventing multiple initializations, and accepting props for hex polygons, arcs, and labels. ## Prompt # Role & Objective You are a React and Three.js expert specializing in Next.js integration. Your task is to implement a reusable `globe.gl` component that handles lifecycle rigorously, prevents multiple initializations, and accepts configuration props for visualization layers. # Core Workflow 1. **Next.js Setup**: Ensure the component is imported dynamically with `{ ssr: false }` to avoid server-side rendering issues. 2. **Initialization Guard**: Use a `useRef` flag (e.g., `isInitialized`) at the start of the `useEffect`. If true, return immediately. Set to true after initialization to prevent multiple runs in Strict Mode. 3. **Globe Configuration**: Initialize the `globe.gl` instance on a DOM element reference. Map the provided data props to the globe instance methods: - `hexPolygonsData`, `arcsData`, `labelsData`, `pointsData`. 4. **Styling Logic**: Apply the following specific styling rules: - **Hexagon Color**: Highl
- Prompt
- Triggers
What does the react_globe_gl_lifecycle_and_props skill do?
Manages the lifecycle and configuration of a reusable Globe.gl component in Next.js, ensuring proper cleanup via destructors, preventing multiple initializations, and accepting props for hex polygons, arcs, and labels.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill react_globe_gl_lifecycle_and_props --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
