These are chat archives for canjs/canjs

3rd
Aug 2017
Gregg Roemhildt
@roemhildtg
Aug 03 2017 13:09
is it possible to disable the auto-conversion to a define map when passing an object to a component?
<my-component {val}="prop" /> Prop is just a plain object, I don't want it to be converted to a define map.
Kevin Phillips
@phillipskevin
Aug 03 2017 13:11
on your DefineMap, set val: "any"
Gregg Roemhildt
@roemhildtg
Aug 03 2017 13:12
Is that different than '*'?
Kevin Phillips
@phillipskevin
Aug 03 2017 13:12
no
they're aliases
Gregg Roemhildt
@roemhildtg
Aug 03 2017 13:12
because I have * right now
Kevin Phillips
@phillipskevin
Aug 03 2017 13:12
it shouldn't be converted then
Gregg Roemhildt
@roemhildtg
Aug 03 2017 13:15
woops, you're right, I didn't define that prop on the define map. so the default is to upgrade it to a define map
Paul Tichonczuk
@tracer99
Aug 03 2017 14:11
What is the easiest way to update the URL without triggering a route change?
Kevin Phillips
@phillipskevin
Aug 03 2017 14:26
are you changing the URL to something that matches one of your routes?
Paul Tichonczuk
@tracer99
Aug 03 2017 14:40
yes
we need to update the url so that if a user hits refresh, the page loads in the state that the user left it in, but right now, the route change is triggering navigation
Kevin Phillips
@phillipskevin
Aug 03 2017 14:42
does that mean the route didn't change correctly when the user navigated to that page?
Kevin Phillips
@phillipskevin
Aug 03 2017 14:51
to answer your original question, I don't know of a way to update the URL without triggering a route change
you can modify the hash, but not pathname
when using pushstate
Paul Tichonczuk
@tracer99
Aug 03 2017 14:59
ok. It's obviously something in our application. As it triggers a full page reload on the first change, but not subsequent ones.