https://linen.dev logo
Join Discord
Powered by
# react
  • u

    user

    01/13/2020, 3:26 PM
    oO
  • u

    user

    01/13/2020, 3:26 PM
    Oh, component, not children
  • u

    user

    01/13/2020, 3:27 PM
    Yeah, makes sense :)
  • u

    user

    01/13/2020, 3:27 PM
    Both should work now anyway, I updated Route (not published on haxelib)
  • a

    ambitious-knife-25690

    01/13/2020, 3:28 PM
    Copy code
    jsx
    <Route path="/system_logs" component={() -> jsx("<SystemLogs/>")} />
    <Route path="/sign_in" component={() -> jsx("<SignInTest />")} />
    over
    Copy code
    jsx
    <Route path="/system_logs">
      <SystemLogs/>
    <Route />
  • a

    ambitious-knife-25690

    01/13/2020, 3:28 PM
    that's fine I almost never use haxelib releases anyway
  • u

    user

    01/13/2020, 3:28 PM
    You could use
    component={SystemLogs}
    instead
  • a

    ambitious-knife-25690

    01/13/2020, 3:28 PM
    I tried that but I got errors
  • u

    user

    01/13/2020, 3:29 PM
    Ok well your solution works too :D
  • a

    ambitious-knife-25690

    01/13/2020, 3:29 PM
    if the latter way works now i'll move to that
  • a

    ambitious-knife-25690

    01/13/2020, 3:29 PM
    cause it looks nicer x)
  • u

    user

    01/13/2020, 3:29 PM
    That's what I use everywhere, it should work
  • a

    ambitious-knife-25690

    01/13/2020, 3:30 PM
    It does work
  • a

    ambitious-knife-25690

    01/13/2020, 3:30 PM
    I just get those weird diagnostic fake errors
  • u

    user

    01/13/2020, 3:30 PM
    Urgh
  • a

    ambitious-knife-25690

    01/13/2020, 3:31 PM
    Yeah, it errors but the errors are lies and need to be "cleared" before it will actually let me compile
  • u

    user

    01/13/2020, 3:31 PM
    What kind of diagnostic errors?
  • a

    ambitious-knife-25690

    01/13/2020, 3:31 PM
    https://discordapp.com/channels/162395145352904705/501539217327915038/665585797830934530
  • a

    ambitious-knife-25690

    01/13/2020, 3:32 PM
    literally that file switch was the only way that would remove the error
  • a

    ambitious-knife-25690

    01/13/2020, 3:32 PM
    It wouldn't even go away with restarting the language server lol
  • u

    user

    01/13/2020, 3:41 PM
    I don't see how you can get that with
    component={SystemLogs}
    Oo
  • a

    ambitious-knife-25690

    01/13/2020, 4:37 PM
    hmm
  • a

    ambitious-knife-25690

    01/13/2020, 4:37 PM
    it works now
  • a

    ambitious-knife-25690

    01/13/2020, 4:38 PM
    maybe I was doing {}
  • a

    ambitious-knife-25690

    01/13/2020, 4:59 PM
    @User
  • a

    ambitious-knife-25690

    01/13/2020, 5:00 PM
    Here's the reason why I changed it to a callback
  • a

    ambitious-knife-25690

    01/13/2020, 5:03 PM
    It works but it's not "correct" from the react side of things
  • u

    user

    01/13/2020, 5:36 PM
    Bad extern?
  • u

    user

    01/13/2020, 5:38 PM
    Can you console.dir(SystemLogs) or whatever component is not working
  • a

    ambitious-knife-25690

    01/13/2020, 6:00 PM
    It happens with any component I specify in that manner
1...293031...80Latest