Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New hook: pass replicant directly to hooks #8

Closed
Hoishin opened this issue Apr 29, 2019 · 0 comments
Closed

New hook: pass replicant directly to hooks #8

Hoishin opened this issue Apr 29, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Hoishin
Copy link
Member

Hoishin commented Apr 29, 2019

const counterRep = nodecg.Replicant<number>('counter');

const Counter: React.FunctionComponent = () => {
	const [count, updateCount] = useNewHookName(counterRep, null);

	// ...
};
@Hoishin Hoishin added this to the 1.0.0 Release milestone Apr 29, 2019
@Hoishin Hoishin self-assigned this Apr 29, 2019
@Hoishin Hoishin added the enhancement New feature or request label Apr 29, 2019
@Hoishin Hoishin closed this as not planned Won't fix, can't repro, duplicate, stale Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant