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

    ambitious-knife-25690

    09/27/2019, 10:05 AM
    Okay I need to suspect lix more in wrong doings
  • u

    user

    09/27/2019, 10:06 AM
    Yeah. Haxe is too easy to deal with, add tink macros and lix for more fun debugging sessions o/
  • a

    ambitious-knife-25690

    09/27/2019, 10:06 AM
    thanks for the debugging session 😁
  • a

    ambitious-knife-25690

    09/27/2019, 10:06 AM
    lets see how long it lasts
  • a

    ambitious-knife-25690

    09/27/2019, 10:07 AM
    Hopefully the updated setup will mean no more random macro errors
  • u

    user

    09/27/2019, 10:07 AM
    That wouldn't be fun
  • c

    cool-psychiatrist-49311

    09/28/2019, 5:30 AM
    This should fix the
    @:native
    error https://github.com/MVCoconut/coconut.react-core/commit/10c0527f50ceb983da3adaeeaf99e677c1639103
  • a

    ambitious-knife-25690

    09/29/2019, 10:14 AM
    changing
    @:state
    does not by default trigger a
    setState
    update, right?
  • a

    ambitious-knife-25690

    09/29/2019, 10:16 AM
    Copy code
    haxe
    @:state var logged_in:Bool = false;
    
    auth.login(() -> this.logged_in = true); // No state refresh
  • a

    ambitious-knife-25690

    09/29/2019, 10:16 AM
    (A pure ReactComponent, not coconut view)
  • a

    ambitious-knife-25690

    09/29/2019, 10:17 AM
    AH! I just had a thought, turns out metadata doesn't have to actually exist - it will compile anyway
  • c

    cool-psychiatrist-49311

    09/29/2019, 2:25 PM
    @:state
    only has effect in
    coconut.ui.View
  • a

    ambitious-knife-25690

    09/29/2019, 2:30 PM
    Yeah I wasn't aware there weren't any compiler errors for invalid metadata
  • a

    ambitious-knife-25690

    09/29/2019, 2:31 PM
    So I just thought that
    @:state
    was implemented in react-next when it didn't moan at me for switching the base class
  • m

    miniature-summer-93860

    10/07/2019, 7:01 AM
    Is there any good documentation on starting with haxe?
  • a

    ambitious-knife-25690

    10/07/2019, 7:38 AM
    There's a readme and examples
  • a

    ambitious-knife-25690

    10/07/2019, 7:39 AM
    Would need more specific issues to help tho
  • m

    miniature-summer-93860

    10/07/2019, 7:41 AM
    Copy code
    D:\haxe\lib\react-next/git/src/lib/react/jsx/JsxStaticMacro.hx:237: lines 237-241 : Type name JsxStaticInit__ is redefined from module JsxStaticInit__
  • m

    miniature-summer-93860

    10/07/2019, 7:42 AM
    I've downloaded all of the git versions and am trying to use the react-native-sample project
  • u

    user

    10/07/2019, 7:42 AM
    Can you try with this branch? https://github.com/kLabz/haxe-react/tree/fix/jsx_static_init_hook
  • m

    miniature-summer-93860

    10/07/2019, 7:45 AM
    sure, thanks!
  • m

    miniature-summer-93860

    10/07/2019, 7:50 AM
    yay it's generating now thanks @User
  • u

    user

    10/07/2019, 7:51 AM
    Nice, I guess I'll merge this fix soon then :)
  • m

    miniature-summer-93860

    10/07/2019, 9:15 AM
    I get this now
  • a

    ambitious-knife-25690

    10/07/2019, 9:25 AM
    Never seen that before 😅
  • a

    ambitious-knife-25690

    10/07/2019, 9:26 AM
    but that's a npm/node issue most likely, not a haxe one
  • a

    ambitious-knife-25690

    10/07/2019, 9:26 AM
    probs something to do with your setup
  • a

    ambitious-knife-25690

    10/07/2019, 9:27 AM
  • a

    ambitious-knife-25690

    10/07/2019, 9:27 AM
    Something has bad regex
  • u

    user

    10/07/2019, 10:21 AM
    Those
    \\\
    seem badly escaped by haxe (related to https://github.com/HaxeFoundation/haxe/issues/8816 ?); I'm not sure why you would need it alone inside brackets though
1...192021...80Latest