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.

Refactor any live or pending components to use `withLabel` property

See original GitHub issue

Until recently, the component API did not natively support access a prop value’s label, so we implemented workarounds like, label, value: { label, value }, but this structure is not compatible with the upcoming UI refresh (smurt inputs).

So we’ve added a new property to the component API, withLabel. We need to update all live and pending components to use this new property asap.

Here is an example of the implementation, since we haven’t yet updated our docs: https://github.com/PipedreamHQ/pipedream/blob/c8f168de85813ceee84b32da46e53b2c41daff21/components/spotify/spotify.app.mjs#L26

Context from Slack: https://pipedream-users.slack.com/archives/C01E5KCTR16/p1642536943036900?thread_ts=1642536367.036100&cid=C01E5KCTR16

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
vellamescommented, Feb 2, 2022

@dannyroosevelt FYI: All my apps were refactored to use withLabel

1reaction
vellamescommented, Jan 26, 2022

FYI: Reddit is almost done, actions are done, but I found some bugs on some old sources, I am fixing it. Next will be Dropbox. I expect to finish it all this week

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to refactor React components to use Hooks
Cover some generic issues with refactoring React components to Hooks that apply to a wide variety of application types.
Read more >
How to refactor Angular component and stay alive - YouTube
Watch this simple tutorial on how to easily refactor Angular component prepared by SoftwarePlant's Team Leader and software developer, ...
Read more >
Refactoring a Complex React Component — 5 Best Practices ...
So we can refactor it creating another small functional component to render the button, passing some properties like action , setClicked , and ......
Read more >
Lightning Aura Components Developer Guide
Lightning includes the Lightning Component Framework and some exciting tools for developers. Lightning makes it easier to build.
Read more >
Refactor code | PyCharm Documentation - JetBrains
On the main Refactor menu or from the context menu of the selection, choose the desired refactoring or press the corresponding keyboard shortcut...
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