El Capitain. Fuse 0.271.1 - 7935
So I have edited hikr example so that when you click on a list item, it takes you to a view of just that list item. Like so https://gyazo.com/5880bf32220a9d5f6fba16448157c3c2 or attached
-
Attached MP4 file
As you see, if you click the edit button you get the serialization error.
The code going from the list to the item view is ``` var Context = require(“Modules/Context”);
function goToHike(arg) {
var hike = arg.data;
router.push(“editHike”, hike);
}
function openHike(args) {
var hike = args.data;
console.log(hike);
router.push(‘hike’, hike);
};
module.exports = {
hikes: Context.hikes,
openHike: openHike,
goToHike: goToHike
}; ```
Code going from item view to editable item view is:
var Context = require("Modules/Context");
var Observable = require('FuseJS/Observable');
var currentHike = Observable();
this.Parameter.onValueChanged(module, function(p) {
currentHike.value = p;
});
function back() {
router.goBack();
}
function goToEditHike(arg) {
router.push("editHike", currentHike);
};
module.exports = {
hike: currentHike,
back: back,
goToEditHike: goToEditHike
}; ```
Any ideas on what is happening here?