omniscientjs/immstruct

Create reference cursor from a cursor.

Closed this issue · 2 comments

This:

let cursor = structure.cursor(keyPath);
let everlasting = structure.reference(cursor);

This is needed for this: #19

This might require us to use internals of Immutable.js.

Yes it depends on internals: https://github.com/facebook/immutable-js/blob/7d69f95c5227c88c6a1be8271abc6686aeda94bf/contrib/cursor/index.js#L44

There's no official exposed API for cursor's keypath.