GithubHelp home page GithubHelp logo

Comments (10)

elsassph avatar elsassph commented on August 22, 2024

That's because Haxe doesn't generate function names, we need to look into giving it a displayName like component classes.

from haxe-react.

kLabz avatar kLabz commented on August 22, 2024

I'll see if I can do something about it

from haxe-react.

elsassph avatar elsassph commented on August 22, 2024

PR #86 was merged, can you try with the haxelib from git?

from haxe-react.

kLabz avatar kLabz commented on August 22, 2024

It should even be in 1.4.0 :)

from haxe-react.

djaonourside avatar djaonourside commented on August 22, 2024

Haxe 4-preview 4, haxe-react dev

build-dev.hxml:
build.hxml -D debug -D develop -D react_hot -D react_render_warning

Build cases

  1. haxe.exe --connect 6000 build-dev.hxml (vscode haxe build task)
  2. haxe.exe build-dev.hxml (cmd)
    The cases give different output. In the first case displayName for a functional component disappears.

from haxe-react.

kLabz avatar kLabz commented on August 22, 2024

Strange, I remember testing with compilation server back then. I'll try to reproduce and fix.

from haxe-react.

djaonourside avatar djaonourside commented on August 22, 2024

I suspect haxe compiler doesn't see debug flag in the first case

from haxe-react.

kLabz avatar kLabz commented on August 22, 2024

It should.

I reproduced and have a fix, I'll push a PR.

from haxe-react.

djaonourside avatar djaonourside commented on August 22, 2024

Thank you:)

from haxe-react.

kLabz avatar kLabz commented on August 22, 2024

If you want to try the fix, you can install haxe-react like this:

haxelib git react https://github.com/kLabz/haxe-react.git fix/jsxstatic-displayname-compilation-server

from haxe-react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.