Giter Site home page Giter Site logo

Multiple routes examples about relay HOT 6 CLOSED

facebook avatar facebook commented on May 7, 2024
Multiple routes examples

from relay.

Comments (6)

yungsters avatar yungsters commented on May 7, 2024

We definitely need more examples of how routes can be used (and maybe how it integrates with other open source routing solutions).

When you refer to the path property, I assume you're referring to the static path?: string property or RelayRoute. This is kind of a remnant of the larger role that RelayRoute used to play in application routing. (This is also why we chose not to document the uri and path properties, heh.)

In the future, I think we will strip out any routing-specific properties (and maybe even rename RelayRoute to be something more like RelayQueryRoots or RelayQueryConfig).

from relay.

keithpitt avatar keithpitt commented on May 7, 2024

In the future, I think we will strip out any routing-specific properties (and maybe even rename RelayRoute to be something more like RelayQueryRoots or RelayQueryConfig).

👍 I was confused by it's name when I started reading the documentation. "It's called a route, where do I set the path? How does this work with the history API" are things that I was thinking.

from relay.

genbit avatar genbit commented on May 7, 2024

@yungsters thanks for explanation! Maybe note somewhere in docs will be useful, I believe many people will have similar confusion.

from relay.

sgwilym avatar sgwilym commented on May 7, 2024

In the future, I think we will strip out any routing-specific properties (and maybe even rename RelayRoute to be something more like RelayQueryRoots or RelayQueryConfig).

@yungsters This would be great, also for (spoken) conversation: I can imagine some confusion could pop up with the phonetically incestuous names of Relay.Route, Relay.Container, and Relay.RootContainer.

from relay.

yungsters avatar yungsters commented on May 7, 2024

This would be great, also for (spoken) conversation:

I don't know... all the confusion and laughs when confusing route and root were pretty fun. Haha, but yes... more reason to rename it.

from relay.

yungsters avatar yungsters commented on May 7, 2024

Now that we've got the helpful documentation, closing this out. I have an internal task to track the removal of path and uri.

from relay.

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.