Coder Social home page Coder Social logo

presence of query param breaks routing about bidi HOT 5 CLOSED

juxt avatar juxt commented on August 30, 2024
presence of query param breaks routing

from bidi.

Comments (5)

malcolmsparks avatar malcolmsparks commented on August 30, 2024

The second argument to match-route should be the path, not the path plus query-string, nor the uri, etc.

match-route expects that you've already stripped off the query-string. That may well be a residual hangover from when bidi was server-side only and Ring did the grunt work of stripping of the query-string...

from bidi.

malcolmsparks avatar malcolmsparks commented on August 30, 2024

(not closing the issue, because I'm open to suggestions on this)

from bidi.

dustingetz avatar dustingetz commented on August 30, 2024

Ok cool that is sensible to me.

from bidi.

joelash avatar joelash commented on August 30, 2024

Maybe I'm missing something, but without matching a route with query parameters, doesn't bidi become impossible to use with Clojurescript and HTML 5 push-state, using pushy?

from bidi.

malcolmsparks avatar malcolmsparks commented on August 30, 2024

I think you're confusing fragments with query parameters:
https://tools.ietf.org/html/rfc3986#section-3.4.

I've found pushy and bidi work very well together, there's explicit
instructions for bidi in pushy's README here:
https://github.com/kibu-australia/pushy

Here's a useful blog article to give more info:
https://carouselapps.com/2015/08/26/no-hashes-bidirectional-routing-in-re-frame-with-bidi-and-pushy/

Hope this helps clarify things.

from bidi.

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.