Skip to content

feat: isSSR or isClient initial commit#16

Open
ZenSamClifford wants to merge 3 commits into
mainfrom
utilities/client-ssr
Open

feat: isSSR or isClient initial commit#16
ZenSamClifford wants to merge 3 commits into
mainfrom
utilities/client-ssr

Conversation

@ZenSamClifford
Copy link
Copy Markdown
Collaborator

No description provided.

@dcoffey-zengenti
Copy link
Copy Markdown
Collaborator

Out of interest, what's the use-case for this? Is it preferable to a useEffect for anything browser only?

@ZenSamClifford
Copy link
Copy Markdown
Collaborator Author

Out of interest, what's the use-case for this? Is it preferable to a useEffect for anything browser only?

Legit question, this is for use outside of react component, as it's not a hook.
I've used it mostly in withEvents / redux stuff.
Wondering how I could document this on the function 🤔

@ZenSamClifford
Copy link
Copy Markdown
Collaborator Author

Guess best way would be just to make a useIsClient hook as well thinking about it...

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