redux-saga-router icon indicating copy to clipboard operation
redux-saga-router copied to clipboard

How detect leaving from current location

Open jonikss opened this issue 6 years ago • 0 comments

Code below not work `const routes = { '/assets/:id/:tab?': function*({ id }) {

    try {
        yield* fetchAssetsItemSaga(id);

    } finally {
        if (yield cancelled()) {
            console.log('leave from', id);
        }
    }
}

};`

jonikss avatar Mar 09 '18 07:03 jonikss