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.

Change `replace` default to `true`?

See original GitHub issue

Seems most of the components I write today need replace: true, want to get an idea of actual usage. +1 if you think this makes sense.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:20 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
yyx990803commented, May 27, 2015

As of now I’m inclined to preserve the current behavior, because

  1. the behavior of actual Custom Elements / Web Components is similar to replace: false (so are Angular 2 components).
  2. Defaulting replace to true makes it a bit weird when manually mounting instances (the template will replace the node that is mounted on) and when using inline-template
  3. Less breakage/migrating work for existing apps.
0reactions
aleksei-a-savitskicommented, May 27, 2015

@yyx990803 Is it still in plans for 0.12.0 release?

Read more comments on GitHub >

github_iconTop Results From Across the Web

FutureWarning: The default value of regex will change from ...
The default value of regex for Series.str.replace() will change from True to False in a future release. In addition, single character ...
Read more >
Make a field to true by default - ServiceNow Community
I created an Active field with True/False type. I have given the default Value as true in Dictionary as well. But on the...
Read more >
Change default value of Button to TRUE? - Glide Community
Is it possible to change the Button value using configuration rule (typically DATA view) to “force” the Button to True/False ?
Read more >
PowerShell Params: A Switch Replacement
With a boolean parameter you can explicitly set the value to either $true or $false , and the other data types have various...
Read more >
3 Ways to Set Default Value in JavaScript | SamanthaMing.com
Let's break down the 3 different ways to set Default Values using logical operator, ... const truthy = true; const falsy = false;...
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