Skip to content

Conversation

@mfmurray
Copy link
Contributor

@mfmurray mfmurray commented Nov 19, 2024

const { signOut, onAuthenticated } = useRownd();

  useEffect(() => {
    const unsubscribe = onAuthenticated((userData) => {
      console.log('ON AUTHENTICATED', userData);
    });

    return () => {
      unsubscribe();
    };
  }, [onAuthenticated]);

@github-actions
Copy link

size-limit report 📦

Path Size
dist/main.js 2.3 KB (-18.32% 🔽)
dist/next.js 10.03 KB (+1.72% 🔺)
dist/remix.js 10.13 KB (-5.52% 🔽)

@mhamann mhamann merged commit f0cbe69 into feat-update-remix-to-match-next-apis Nov 20, 2024
@mhamann mhamann deleted the feat-on-authenticated branch November 20, 2024 03:53
mhamann pushed a commit that referenced this pull request Nov 21, 2024
* feat: add remix server apis that match nextjs

* fix: boolean type

* Feat on authenticated (#30)

* feat: app examples

* feat: add onAuthenticated callback to useRownd
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.

3 participants