// Skipping deserialization with computed mobx property.
classTodoState { // Todo.category is @serializable(reference(...)) @serializable(list(object(Todo))) @observable todos: Todo[]
// we want to serialize the categories, so that the references in // this.todos can be resolved, but we don't want to set this property @serializable( list(object(TodoCategory), { afterDeserialize:callback=>callback(undefined, SKIP) })) @computed getcategories() { returnthis.todos.map(todo=>todo.category) } }
If you want to skip serialization or deserialization, you can use SKIP.
Example
Example