question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

linkTo another story error

See original GitHub issue

Hi guys,

I try to figure out what can produce that error when clicking a button with a specific handler to switch to another named story:

page_bus.js?147f:40 Uncaught Error: dataId is not supplied via queryString

const props = {
    handleSignIn: function() {
      linkTo('Tab', 'empty');
    }
  }
};

storiesOf('Login', module)
  .add('empty', () => (
    <Login {...props} />
));

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ndelangencommented, Sep 6, 2018

linkTo('section_1', 'section_1_2') returns a function that when called, will navigate.

linkTo('section_1', 'section_1_2')() will navigate.

0reactions
Ne-Necommented, Sep 4, 2018

I am getting the same issues when using it with setState in react:

Problem

This is just a quick example, a button is clicked. isLoading a boolean state for react component overlay. Complete 1500 millisecond delay then it should fire linkTo() however it does not work…

handleContinueButton = () => {
    this.setState(
      {
        isLoading: true,
      },
      () => {
        setTimeout(() => {
          this.setState(
            {
              isLoading: false,
            },
            () => linkTo('section_1', 'section_1_2')
          );
        }, 1500);
      }
    );
  };

Button origin

<Button onClick={this.handleContinueButton} fluid primary size="large" content="Continue" />

Any ideas?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[addon-docs] Link to another story · Issue #8618 - GitHub
I need to link to another story to sort of build a "See also" or "For more information, see..." section. Describe the solution...
Read more >
Linking a story to other story - Atlassian Community
Solved: If i link(like blocks or blocked by) a issue to a story. Is there any possibility that we cant close the story...
Read more >
Instagram 'link in bio & stories' not working or opens website
The Instagram link in bio and stories is not working or opens the web version for many users, but there's a potential workaround....
Read more >
Link user stories and issues to other work items in Azure Boards
Learn how to link one or more work items to other work items or to a new git branch in Azure Boards.
Read more >
Tag: Link to another story? crossword clue - LAXCrossword.com
a complete list of answers. Want to discuss the puzzle? Then … … leave a comment. Bill's time: 6m 29s. Bill's errors: 0...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found