ok thanks. I will check that out. If I have questions I will come back. Thanks again!
sure, no problem!
in can v2 with a view.attr how do I properly get the attrData.scope._context? I can't do attrData.scope.attr(), etc.
Hi Kevin another question.. the problem I am facing that my view is not hitting the API to show the latest data. But if I visit the page again or refresh it works. So I was trying to find a way to disable caching. Hence my previous question. Is there any other way to refresh the view to show the latest instead of clearing cache?
maybe that’s not a caching issue
even with the fall-through cache, it will still make the request to the API
it will just give the cached data, then make the request to the API and update the response
what change is happening that should trigger the new request?
so I have a form in a view where I am creating a row of data.. another view should list all the rows of data
now on one tab I save new data and another tab I try to visit the list page and I don't see the new data. The API request does not show the new data as well. but If I go back by browser back or another way and come back to the list page... the api request shows new data. So I doubted the caching.
it’s hard to say what’s happening
any way you can try to reproduce it in a jsbin?
I can try. I have not used it so far.
there is a link at the top of gitter that you can use to get started
So this code works if I use fixtures.. but this problem happens when I really hit the APIs that talk to my local mongo
If I copy the code in jsBin you won't be able to see the problem by running it but you can see the code I guess
will try that. I just tried this in my model definition "cacheConnection": "real-time",
seems to be working. is that a valid configuration?
never mind my last question
Thank you guys. changing super map to base map worked.
@phillipskevin Thanks I figured it out that night I forgot to mention it.
Is there any good way to prompt somebody to save a form as they are trying to navigate away? Let's say they filled out a form and forgot to save. Is there a decent way to prevent route change or force them back or something?
I know if they close the web browser you can do the js onbeforeunload event
@gKreator you can let the on route change event block if form is filled partial
i don't remember exactly where it is as i don't use routing from canJs any more
i found out via benchmarks that my server side handels packaging and caching and all that more efficent so i only use viewModel + component