Refactor any live or pending components to use `withLabel` property
See original GitHub issueUntil 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:
- Created 2 years ago
- Comments:9
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dannyroosevelt FYI: All my apps were refactored to use
withLabel
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