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.

Wrap Link.__call__

See original GitHub issue

Currently users directly override Link.__call__. I propose letting users override, say, Link.call instead, and call it from Link.__call__. It’s just like how Function.__call__ works.

This will introduce several benefits (At least I can think of):

  • Link hooks
  • Links will be able to be represented hierarchically in graph visualization. (See #2215)

Some candidate method names: call, __call_link__, define, define_link, any other?

Note: This will not break backward compatibility, as existing code (overriding Link.__call__) will just work, but with new features (e.g. link hooks) disabled.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

4reactions
mitmulcommented, May 7, 2018

If there’s no objection to the above comment of @niboshi, I’m going to start writing this feature with the first option in the comment and send a PR soon.

1reaction
niboshicommented, May 8, 2018

@mitmul Got it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

html - Word wrap a link so it doesn't overflow its parent div width
The link text can be very long and it overflows the div when it's length does exceed the div width. Is there a...
Read more >
4 Steps to Add a Clickable Telephone Link in HTML
Click Edit as HTML. How to Add a HTML Telephone Link to Your footer in WordPress: Click edit as. Wrap the phone number...
Read more >
Wrap Long Links with CSS - David Walsh Blog
Learn how to wrap long links so that they don't escape the parent width!
Read more >
Handling Long Words and URLs (Forcing Breaks ... - CSS-Tricks
Here's the scoop: overflow-wrap: break-word; makes sure the long string will wrap and not bust out of the container. You might as ...
Read more >
How to stop phone number links wrapping using CSS - Texelate
It is better if phone links do not wrap onto the next line. Thankfully, this is easy to prevent using some simple CSS....
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