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.

The 'hidden' modifier is not hiding the text

See original GitHub issue

I’m trying to use the ‘hidden’ modifier but the text is still displaying in the console output …

console.log(chalk.hidden('Hello world!'))

Running NodeJS in Visual Studio Code.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Qix-commented, Oct 29, 2020

Not sure how often that’s happened but yes, that’s the kind of mindset that’s important 😃

1reaction
Qix-commented, Oct 29, 2020

FWIW hidden isn’t really recommended to be used anymore. It’s not “secret” and definitely not secure, so beyond any sort of usecase like that, it’s probably best just not to use it. There is a reason why most emulators don’t (correctly, or at all) support it - there’s not a lot of practical use for it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dynamically hiding view in SwiftUI - Stack Overflow
The function: · 1 - Create Modifier struct HiddenModifier: ViewModifier{ var isHide:Binding<Bool> func body(content: Content) -> some View { if ...
Read more >
Choosing the right way to hide a view - Apple Developer
Use an opacity(_:) modifier with a value of 0 so that the layout accounts for the error message whether or not it's visible....
Read more >
6 Ways to Show and Hide Views in SwiftUI - Level Up Coding
Views that you want to show and views that you'll want to hide. ... That said if you put the two Text() view...
Read more >
Hidden modifier in SwiftUI - Medium
Hidden modifier is used to hide views. Views that are hidden are invisible and don't receive or respond to the interactions but they...
Read more >
How to hide the label of a Picker, Stepper, Toggle, and more ...
Tip: If you want all your labels hidden you can apply the labelsHidden() modifier to a VStack or whatever you're using as your...
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