Code Monkey home page Code Monkey logo

Comments (7)

alfonsogarciacaro avatar alfonsogarciacaro commented on July 19, 2024 1

We're trying to split React types and helpers in two different libraries (see discussion). The idea is we can have different React APIs (original React, Feliz, incoming JSX, etc..) to be compatible with each other without having to depend on the full Fable.React. But unfortunately this breaks code if you're depending on a library that hasn't been updated, because F# doesn't support type forwarding.

What are the other React dependencies in your project? In any case you probably don't need to update right now.

from fable-react.

OnurGumus avatar OnurGumus commented on July 19, 2024

I was using Lit sample by the way

from fable-react.

OnurGumus avatar OnurGumus commented on July 19, 2024

I understand. In that case I will stick to older version. Feel free to close the issue if you will.

from fable-react.

kerams avatar kerams commented on July 19, 2024

Does this mean we have to pin ~> 8 until every single library we're referencing has switched?

from fable-react.

kerams avatar kerams commented on July 19, 2024

And conversely, if I create a new bindings package and use Fable.React.Types, I can't use it if I also reference packages that haven't switched?

from fable-react.

kerams avatar kerams commented on July 19, 2024

Would it be possible to release a new beta of Elmish.React which uses Fable.React.Types, so that Fulma and its extensions could in turn upgrade to it as well? That would unblock the upgrade path to Fable.React 9 (and Fable 4) in my project at least.

cc @MangelMaxime

from fable-react.

alfonsogarciacaro avatar alfonsogarciacaro commented on July 19, 2024

And conversely, if I create a new bindings package and use Fable.React.Types, I can't use it if I also reference packages that haven't switched?

Yes, this is very unfortunate because F# doesn't support type forwarding. The funny thing is it does work in Fable because we always compile the sources, but having errors in the IDE is not nice. Let's try to update all packages quickly so we can make the pain short-lived :)

Would it be possible to release a new beta of Elmish.React which uses Fable.React.Types, so that Fulma and its extensions could in turn upgrade to it as well? That would unblock the upgrade path to Fable.React 9 (and Fable 4) in my project at least.

Elmish.React has just been released 🎉

from fable-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.