This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-30
Channels
- # aleph (2)
- # announcements (4)
- # babashka (3)
- # beginners (89)
- # calva (12)
- # cljdoc (7)
- # cljsrn (5)
- # clojars (1)
- # clojure (19)
- # clojure-dev (6)
- # clojure-europe (2)
- # clojurescript (12)
- # conjure (7)
- # cursive (4)
- # fulcro (28)
- # graphql (6)
- # gratitude (2)
- # introduce-yourself (2)
- # jobs (1)
- # jobs-discuss (26)
- # off-topic (2)
- # pathom (22)
- # pedestal (2)
- # podcasts-discuss (10)
- # re-frame (9)
- # reitit (8)
- # releases (2)
- # remote-jobs (1)
- # shadow-cljs (1)
- # tools-deps (27)
- # xtdb (11)
Is there a way to make it so re-frame-10x does NOT expand out automatically on loading a page that has it enabled? Normally its not a problem, but when debugging on a phone its a super pain since there is no way (that I know of) to do a CTL-H to close it and the expand button is usually hidden because of the phone form factor.
We have the same problem and our stopgap has been to just disable it when we do mobile builds
Somewhat on the radar to make a more specialized tool for what we do, but frankly just using a git dep and flipping the bool for yourself might be the play
You could try to use https://github.com/day8/re-frame-10x/blob/master/src/day8/re_frame_10x.cljs#L117. It was added in https://github.com/day8/re-frame-10x/pull/210, but unfortunately it is not in the docs.
Hi, I’m looking to integrate auth0 with a re-frame app that I’m building, but I’m still quite new to both cljs and re-frame so am struggling with the fundamentals. The integration I’m trying to incorporate is at https://auth0.com/docs/quickstart/spa/react/01-login; as part of that example I need to re-implement the following js code:
import React from "react";
import { useAuth0 } from "@auth0/auth0-react";
const LoginButton = () => {
const { loginWithRedirect } = useAuth0();
return <button onClick={() => loginWithRedirect()}>Log In</button>;
};
export default LoginButton;
I’m struggling with how to convert this to re-frame code; I konw the onClick
on the button should be a dispatch to an event (which is fine, but I just can’t get the useAuth0() function to display the auth0 login form as expected. Any pointers would be gratefully appreciated.
Auth0 Docs
https://auth0.com/docs/quickstart/spa/react/01-login
Auth0 allows you to add authentication to your React application quickly and to gain access to user profile information. This guide demonstrates how to integrate Auth0 with any new or existing React application using the Auth0 React SDK.
https://auth0.com/docs/quickstart/spa/react/01-login
I don’t think you should be using reframe to implement any of that, just do it all in a function, like in the js example