Skip to content

refactor: formalize deep link opt in #633

Description

@johallar

Address #588 (comment) by formalizing how state gets added to the encoded deep linking state.

Idea:
add a function to encodeState, which will allow devs to add an atom, specify the property name in deep link state, and specify how the state should be added to the object

eg:


encodeState({
    prop: (deepLinkState) => return deepLinkState.dag.operatorNodeIds, // how to do this well w nested object
    get: () => [...store.get(selectedNodeIdsAtom)].sort(),
 })

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    uiPertains to the UI

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions