om

Please ask the channel first, not @dnolen directly!
2017-08-04T14:06:24.196887Z

@levitanong I hadn't thought of situations without javascript. I suppose SSR only should be supported, so hrefs make sense.

2017-08-04T14:06:55.215234Z

Though I guess my forms should be setup for situations without javascript too. 😕

2017-08-04T14:07:58.251537Z

Fwiw, i use hrefs and pushy.

2017-08-04T14:08:14.261402Z

That's what I've got now as well.

2017-08-04T14:08:38.275796Z

And bidi routes. Though every once in a while I'll throw in an incorrect href and it'll actually try to go to that page, which is a pain.

2017-08-04T14:08:46.280508Z

I don't have SSR yet.

levitanong 2017-08-04T14:15:50.525843Z

@ghopper and @danielstockton i used to use pushy, but it did some weird things when dealing with xlink:hrefs. This is when you’re trying to use SVG symbols.

2017-08-04T14:16:46.558751Z

@levitanong you can fix that with a bit of css pointer-events: none

2017-08-04T14:17:11.573388Z

I use a lot of SVG icons for links and had the same issue.

2017-08-04T14:18:07.605048Z

You just have to make sure the css is targeted, so you don't mess with events for charts etc... that may also use svg.

levitanong 2017-08-04T14:27:30.942712Z

@danielstockton oh I didn’t know that! Thanks for the tip.

2017-08-04T14:31:01.073697Z

So if I have a :onSubmit #(.preventDefault %) on a form, then when javascript is disabled, it'll actually post?

2017-08-04T14:33:57.183965Z

:onSubmit is a React event-handler and relies on js too

2017-08-04T14:34:33.205806Z

So when javascript isn't around it won't prevent it, right?

levitanong 2017-08-04T14:34:37.208599Z

@ghopper afaik you would need to fill out the action attribute if you wanted it to work without javascript.

levitanong 2017-08-04T14:34:50.217105Z

also, the method

2017-08-04T14:35:15.232566Z

Oh yeah, sorry, I was saying if the form was formatted as a valid post form.

2017-08-04T14:35:52.255418Z

So I could make all forms be valid forms, but then stop them from actually posting and do om stuff instead.

levitanong 2017-08-04T14:38:17.343993Z

I believe so! that’s exactly what pushy does under the hood.

2017-08-04T14:39:31.388060Z

Yeah, then combining that with pushy and hrefs and SSR, I should have my app act as either a SPA or multiple pages.

2017-08-04T14:44:33.568890Z

You've got your work cut out.