Git Product home page Git Product logo

Comments (2)

ogoffart avatar ogoffart commented on May 28, 2024

I'm not sure whether the component catalog should depends on the component under preview or not. But yes, we shouldn't allow dropping it.

We need to do some graph analysis of each component to know whether they contain the component under review or not or if it is allowed to import that file from the current file without causing recursion.

Considering this is not a simple task, I think we can live with this bug for the MVP though.

Edit: Although if it is in the same file, it should be easy to disallow dropping on component declared before the component we want to drop.

from slint.

tronical avatar tronical commented on May 28, 2024

Considering this is not a simple task, I think we can live with this bug for the MVP though.

I agree. I mean, I think for the MVP it would still be very beneficial to cover at least the most obvious cases that user will run into, such as the scenario you described with the declaration order. Just wanted to make sure we're tracking this issue.

I ran into this by accident as I ended up dragging the wrong thing while trying to see if I can use this already for a demo. It took just a few seconds, and once in this state it's very hard to get back (clicking into the text editor and pressing the undo shortcut being hard).

from slint.

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.