- Last 7 days
-
-
(this issue)
-
-
svelte.dev svelte.dev
-
https://github.com/sveltejs/svelte/issues/1037#issuecomment-737872461
Explanation (from https://github.com/sveltejs/svelte/issues/1037#issuecomment-739458005):
@AlexGalays register is an action created and passed in from the parent node (Wrapper) which allows the child to register with it. Not builtin to svelte.
That's very clever @PatrickG. Nice one. I was a bit confused when first looking at it to understand what was going on, but I think that will be a handy tool in the toolbox.
But why do we need this? If we remove all use:register, it still toggles just fine. Seems the only benefit is that this allows cleanup.
-
- Jan 2021
-
ux.stackexchange.com ux.stackexchange.com
-
Material Design guidelines don't specify popovers, but the specification of material properties provide a clear set of properties that can be used to create popups.
-
- Dec 2020
-
www.npmjs.com www.npmjs.com
-
No more waiting around for pull requests to be merged and published. No more forking repos just to fix that one tiny thing preventing your app from working.
This could be both good and bad.
potential downside: If people only fix things locally, then they may be less inclined/likely to actually/also submit a merge request, and therefore it may be less likely that this actually (ever) gets fixed upstream. Which is kind of ironic, considering the stated goal "No more waiting around for pull requests to be merged and published." But if this obviates the need to create a pull request (does it), then this could backfire / work against that goal.
Requiring someone to fork a repo and push up a fix commit -- although a little extra work compared to just fixing locally -- is actually a good thing overall, for the community/ecosystem.
Ah, good, I see they touched on some of these points in the sections:
- Benefits of patching over forking
- When to fork instead
-
Yarn only runs the postinstall hook after yarn and yarn add, but not after yarn remove. The postinstall-postinstall package is used to make sure your postinstall hook gets executed even after a yarn remove.
Tags
- pull request stalled
- making it easy to do the wrong thing
- forking to add a desired missing feature/change
- irony
- unfortunate workarounds
- limitations leading to workarounds
- maintaining a fork while waiting for upstream to merge
- missing feature leading to less-than-ideal workarounds
Annotators
URL
-
-
-
It seems being able to bind:this={slotEl} directly on a slot element is a popular request. I'll add my +1 as adding div wrappers just to get dom references gets old really fast.
-
-
gamefaqs.gamespot.com gamefaqs.gamespot.com
-
I also would like to see any hidden blocks or dev shortcuts.
-
I'm more bothered by the fact that you can't practice other people's levels, just certain parts of the level, before actually going back and trying to beat it completely.
-
- Nov 2020
-
github.com github.com
-
I hope @hperrin you're still alive to discuss about this and eventually for a pull request.
-
@monkeythedev I am curious how do you "organize" your work - You forked https://github.com/hperrin/svelte-material-ui and https://github.com/hperrin/svelte-material-ui is not very active. Do you plan an independent project ? I hope the original author would return at some times, if not, i'll see
-
Maybe @hperrin would be able to make an appearance and select a few additional maintainers to help out.
Tags
- avoid forking if possible
- should they fork and create new alternative independent project?
- maintainer: should add additional maintainers to help out
- maintainer: more maintainers needed
- maintenance status uncertain
- maintainer is missing (uncertain if they plan to continue maintaining)
- forked because no longer maintained
Annotators
URL
-
-
github.com github.com
-
You can also see this repo: default-passive-events.
-
-
geoexamples.com geoexamples.com
-
After some attempts mapping with Svelte, I missed using canvas instead of SVG
-
-
timdeschryver.dev timdeschryver.dev
-
In the past, I tried to create some proof of concepts with svelte, but I usually ended up missing some of the features that RxJS provides. Now that I know that they complement each other well, I will grab this combination more often
-
-
github.com github.com
-
Not being cancelable makes validating dialog content impossible - eg a login dialog or anything that takes user input. Of course, it's easy enough to get around - but I think this should be a requirement of a dialog.
-
-
github.com github.com
-
It used to be great that I was able to select a layer from any image and use it as a starting point. Currently, I am given an image that has 4 layers to be stripped off to get to the original base image. The original image is not reconstructable in any other way.
-
-
stackoverflow.com stackoverflow.com
-
# Run once, hold otherwise if [ -f "already_ran" ]; then echo "Already ran the Entrypoint once. Holding indefinitely for debugging." cat fi touch already_ran
-
Edit this file (corresponding to your stopped container): vi /var/lib/docker/containers/923...4f6/config.json Change the "Path" parameter to point at your new command, e.g. /bin/bash. You may also set the "Args" parameter to pass arguments to the command. Restart the docker service (note this will stop all running containers):
-
-
boardgamegeek.com boardgamegeek.com
-
I refuse to back anything from Queen games. Their kickstarters, IMO, are meant to get people to have FOMO instead of something being worth the price.
-
-
stackoverflow.com stackoverflow.com
-
I came over from Vue as well, the out-in is one thing I miss with Svelte. Rich Harris even acknowledged it prior to Svelte 3 but never really implemented a fix as far as I'm aware.
-
-
imfeld.dev imfeld.dev
-
Directives like ng-if="info.report.revenue" sort of work in Angular if info.report is undefined, in that the ng-if becomes false. But the Svelte equivalent {#if info.report.revenue} throws an error. For now we're using lodash get in places where we need to and looking forward to Svelte support for optional chaining.
-
-
news.ycombinator.com news.ycombinator.com
-
Since you've been using Svelte for a few months after using React, haven't you been hit by the lack of composability in Svelte?Passing around components as variables is such a common pattern in React, and there's no good replacement in Svelte. The lack of dynamism in components and styles makes theming and crafting reusable components (outside of simple widgets) very tedious [1][2]. I'm genuinely curious how someone can come from React and not be bothered by it.
Tags
Annotators
URL
-
-
-
If this is getting implemented, I think I'll love to see both implemented. I can see a lot of use cases where I would like to encapsulate the component with additional wrappers and in another scenarios I would like to just use the component. Now i work around this using empty div but then at times it breaks the structure because of the div element and I'll have to add more class utilities to make it work. This will be a great addition for Svelte.
-
-
-
I also tried to use <!-- svelte-ignore unused-export-let --> before the script tag but still no chance.
-
-
github.com github.com
-
You can only adopt a workaround, which can be one of
-
- Oct 2020
-
stackoverflow.com stackoverflow.com
-
I use a mutator and use it's changeValue function to 'change' the value of the relevant field (I supply the same value). This in turn notifies all relevant parties of the change to the form's state, and a validation is triggered.
Nearly duplicate annotation here: https://hyp.is/I2t56hjLEeuPXIsZG-jYog/xtzmf.csb.app/
-
-
xtzmf.csb.app xtzmf.csb.app
-
Use the same value that was submitted, which ensures that a 'change' is triggered even though the value itself doesn't change. Therefore, the same value gets validated again.
Calling it "change" even though it didn't change is kind of cheating/abuse ... but I guess it's okay...??
mutateValue([name], state, { changeValue }) { // change the value to the same value, thus // triggering a revalidation of the same value changeValue(state, name, value => value); }
-
-
-
I have a feature spec to test the Javascript behavior of the blur event, sadly Capybara's native DSL doesn't seem to support it yet.
-
-
-
mixing the turing complete of javascript with the markup of HTML eliminates the readability of JSX so that it is actually harder to parse than a solution like hyperscript
-
-
github.com github.com
-
I discovered that a solution can be hacked using an {#if}, but a proper one would be nice:
-
-
github.com github.com
-
This reactive statement is just used to have the store automatically subscribed and unsubscribed.
-
-
dylanvann.com dylanvann.com
-
the code is a bit verbose/convoluted
-
-
dylanvann.com dylanvann.com
-
Using another reactive statement with $effect we have Svelte automatically handle subscribing and unsubscribing to the store
-
-
github.com github.com
-
It provides several capabilities that are difficult to achieve with React alone, while being compatible with the newest features of React.
-
-
-
Here's a proxy store I wrote to derive the value of a store nested within other stores, it plays nice with typescript and can go infinitely deep
-
- Sep 2020
-
-
I guess we could always add a bunch of adapter code to watch the flag and trigger a callback when it becomes true or false...
-
but would it be reasonable to expect svelte-select to handle that so that consumers of this lib don't have to do all that?
-
-
svelte.dev svelte.dev
-
-
Most simple example: <script> import ChildComponent from './Child.svelte'; </script> <style> .class-to-add { background-color: tomato; } </style> <ChildComponent class="class-to-add" /> ...compiles to CSS without the class-to-add declaration, as svelte currently does not recognize the class name as being used. I'd expect class-to-add is bundled with all nested style declarations class-to-add is passed to ChildComponent as class-to-add svelte-HASH This looks like a bug / missing feature to me.
-
Vue does this in a way that just makes sense.
-
-
github.com github.com
-
Svelte will not offer a generic way to support style customizing via contextual class overrides (as we'd do it in plain HTML). Instead we'll invent something new that is entirely different. If a child component is provided and does not anticipate some contextual usage scenario (style wise) you'd need to copy it or hack around that via :global hacks.
Tags
- ugly/kludgey
- forking to add a desired missing feature/change
- forced to fork/copy and paste library code because it didn't provide enough customizability/extensibility / didn't foresee some specific prop/behavior that needed to be overridable/configurable (explicit interface)
- maintenance burden to explicitly define/enumerate/hard-code possible options (explicit interface)
- trying to prevent one bad thing leading to people doing/choosing an even worse option
- run-time dynamicness/generics vs. having to explicitly list/hard-code all options ahead of time
- workarounds
- Svelte: how to affect child component styles
- component/library author can't consider/know ahead of time all of the ways users may want to use it
Annotators
URL
-
-
github.com github.com
-
There's no way to change style incapsulation method without patching the compiler, and this means maintaing a fork, which is not desirable.
-
The problem with working around the current limitations of Svelte style (:global, svelte:head, external styles or various wild card selectors) is that the API is uglier, bigger, harder to explain AND it loses one of the best features of Svelte IMO - contextual style encapsulation. I can understand that CSS classes are a bit uncontrollable, but this type of blocking will just push developers to work around it and create worse solutions.
Tags
- forking to add a desired missing feature/change
- arbitrary limitations leading to less-than-ideal workarounds
- +0.9
- Svelte: CSS encapsulation
- trying to prevent one bad thing leading to people doing/choosing an even worse option
- avoid forking if possible
- important point
- key point
- Svelte: how to affect child component styles
- missing out on the benefits of something
Annotators
URL
-
-
github.com github.com
-
Ideally, you should be able to write pure css in style tags in components, just like you can other frameworks(React or vue)
-
-
github.com github.com
-
stackoverflow.com stackoverflow.com
-
being able to compose multiple components' functionality via decoration (not creating new "combo" components or something) is more elegant, and something I wish React had.
-
- Aug 2020
-
-
Harford, Tim. ‘A Bluffer’s Guide to Surviving Covid-19 | Free to Read’, 28 August 2020. https://www.ft.com/content/176b9bbe-56cf-4428-a0cd-070db2d8e6ff.
-
-
www.bbc.co.uk www.bbc.co.uk
-
‘Missing School Is “Worse than Virus for Children”’. BBC News, 23 August 2020, sec. UK. https://www.bbc.com/news/uk-53875410.
-
- Jul 2020
-
www.jclinepi.com www.jclinepi.com
-
Sperrin, M., Martin, G. P., Sisk, R., & Peek, N. (2020). Missing data should be handled differently for prediction than for description or causal explanation. Journal of Clinical Epidemiology, 0(0). https://doi.org/10.1016/j.jclinepi.2020.03.028
-
- Jun 2020
-
stackoverflow.com stackoverflow.com
-
What would be nice is if JavaScript had a built-in way to do what I can do in Ruby with:
> I18n.interpolate('Hi, %{name}', name: 'Fred') => "Hi, Fred"
But to be fair, I18n comes from i18n library, so JS could just as easily (and I'm sure does) have a library that does the same thing.
Update: Actually, you can do this in plain Ruby (so why do we even need
I18n.interpolate
?):main > "Hi, %{name}" % {name: 'Fred'} => "Hi, Fred"
main > ? String#% From: string.c (C Method): Owner: String Visibility: public Signature: %(arg1) Number of lines: 9 Format---Uses str as a format specification, and returns the result of applying it to arg. If the format specification contains more than one substitution, then arg must be an Array or Hash containing the values to be substituted. See Kernel::sprintf for details of the format string. "%05d" % 123 #=> "00123" "%-5s: %016x" % [ "ID", self.object_id ] #=> "ID : 00002b054ec93168" "foo = %{foo}" % { :foo => 'bar' } #=> "foo = bar"
I guess that built-in version is fine for simple cases. You only need to use
I18n.translate
if you need its more advanced features likeI18n.config.missing_interpolation_argument_handler
.
-
-
www.jclinepi.com www.jclinepi.com
-
van Smeden, M., Groenwold, R.H.H., & Moons, K. GM. (2020, June 18). A cautionary note on the use of the missing indicator method for handling missing data in prediction research. Journal of Clinical Epidemiology. https://doi.org/10.1016/j.jclinepi.2020.06.007
-
-
rails.lighthouseapp.com rails.lighthouseapp.com
-
Seems a little unfortunate that there is no obvious way to edit or remove my previous reply.
-
-
www.theguardian.com www.theguardian.com
-
Townsend, M. (2020, June 6). Number of missing vulnerable children soars as safeguarding is cut during pandemic. The Observer. https://www.theguardian.com/society/2020/jun/06/alarming-rise-in-cases-of-missing-children-following-safeguarding-cuts
-
-
-
With inline diff tags you can display {+ additions +} or [- deletions -].
Can also use/abuse for general highlighting (background color) purposes. Too bad there's no first-class support for that, and that you can only highlight with green or red and not yellow, etc.
-
- May 2020
-
-
Rosenblatt, S. F., Smith, J. A., Gauthier, G. R., & Hébert-Dufresne, L. (2020). Immunization Strategies in Networks with Missing Data. ArXiv:2005.07632 [Physics, q-Bio]. http://arxiv.org/abs/2005.07632
-
-
-
-
I want my Page Translator extension to be made irrelevant by Firefox having built-in language translation, like Google Chrome and Microsoft Edge. It is a critical feature used by millions of people daily. It bridged a feature gap. Mozilla killing this add-on without replacing it hurts users.
-
-
github.com github.com
-
I would love for Mozilla to make this extension irrelevant by providing the functionality natively. Language translation is a standard and yet highly differentiating feature in Chrome and Edge.
-
I wish Mozilla would recognize the importance of built-in translation that Google Chrome and Microsoft Edge have.
-
- Apr 2020
-
code.luasoftware.com code.luasoftware.com
-
Some variety of markdown support the following syntax, but not supported in Hugo/BlackFriday. [Lua Software](http://www.luasoftware.com){:target="_blank"}
-
-
stackoverflow.com stackoverflow.com
-
[link](url){:target="_blank"} Works for jekyll or more specifically kramdown, which is a superset of markdown, as part of Jekyll's (default) configuration. But not for plain markdown. ^_^
-
-
stackoverflow.com stackoverflow.com
-
For ghost markdown use: [Google](https://google.com" target="_blank) Found it here: https://cmatskas.com/open-external-links-in-a-new-window-ghost/
-
-
stackoverflow.com stackoverflow.com
-
stackoverflow.com stackoverflow.com
-
www.freshworks.com www.freshworks.com
-
No more struggling to stay on top of every little thing your team is saying, for fear of missing out.
-
- Feb 2020
- Jan 2020
-
-
Some questions are only asked by people with a fundamental misunderstanding. The friends who walk into my office and ask, “have you read all of these” miss the point of books.
-
- Dec 2019
-
askubuntu.com askubuntu.com
-
FYI for later travellers, it looks like the comment in question by @FreeSoftwareServer has been removed.
-
-
github.com github.com
-
Suggestion: add a link to rdoc documentation.
I couldn't find a link, and even doing a web search for "responders rdoc" or "responders documentation" is pretty fruitless and pointless (partly due to responders being too generic of a name).
I eventually just went to rdoc.info, searched for responders, and found: https://rdoc.info/github/plataformatec/responders
Tags
Annotators
URL
-
- Nov 2019
-
www.youtube.com www.youtube.com
-
stackoverflow.com stackoverflow.com
-
Thank you, I put the restaurant_params both in def new & def create but only need it in the def create
-
- Oct 2019
-
-
This being the City of Ryde, political vendettas are never far from the surface.
That would have to include the vendetta that prompted the call to The Hasbeen, resulting in your misguided story drawing on incomplete facts and coverage dating back to 2014.
Mental note: This is the type of story that will be perfect for robot journalists when The Hasbeen boosts its editorial quality by replacing its newsroom with robots.
Tags
Annotators
URL
-
- Sep 2019
-
nlp.stanford.edu nlp.stanford.edu
-
It is also possible to use this annotator to annotate fields other than the NamedEntityTagAnnotation field by and providing the header
Zrejme sa jedná o možnosť anotovať aj iné ako NER tagy, že to TokensRegex umožňuje. Nižšie mi chýba príklad presne na toto.
-
- Jan 2018
-
hunabku.pbworks.com hunabku.pbworks.com
-
can not
cannot DO
-
arrived.
arrived to.
-
n m
-
- Dec 2017
-
crumplab.github.io crumplab.github.io
-
Some Lifetime Prevalence Results From the National Comorbidity Survey
Where is the figure?
-
- Nov 2017
-
www.ncbi.nlm.nih.gov www.ncbi.nlm.nih.gov
-
craniocervical junction compression
missing HPO
-
- Oct 2017
-
crumplab.github.io crumplab.github.io
-
For the moment I’ll put on my scientific thinking hat because there numerous ways that I can provide evidence for my claim the people believe all sorts of crazy things.
Change "there" to "there are".
-
- Sep 2017
-
newsela.com newsela.com
-
Miss Amazing is a pageant for girls and young women with learning disabilities. In the 10 years since it began, 1,700 girls and young women with disabilities have taken part.Pageant Has Spread To More Than 30 States
The author should explain why these girls need a special pageant though. How do their learning disabilities make it harder for them to succeed in a regular pageant?
Tags
Annotators
URL
-
-
ideas.ted.com ideas.ted.com
-
A third might leave the experience out of his story altogether, deeming it unimportant.
Basically the author seems to be saying that the choices you make about how you view your past have as much of an effect on you as your actual past.
-
- Apr 2017
-
en.wikipedia.org en.wikipedia.org
-
Three of the victims were of Turkish origin,[38] two victims were from German Sinti families and one from a Kosovan Roma family.
About 50 people of various ethnic backgrounds gathered at a Munich sports hall early Saturday to await official word on the fate of missing loved ones (Washington Post, 2016).
-
- Feb 2017
-
ampliguity.xyz ampliguity.xyz
- Jul 2016
-
hpsg.fu-berlin.de hpsg.fu-berlin.de5.pdf1
-
It also
"It /has/ also..."
Tags
Annotators
URL
-
- Feb 2016
-
github.com github.com
-
XXX More stuff here
expand here
-
Solution needs more stuff
-
- Nov 2015
-
www.mmcr.us www.mmcr.us
-
Does the Espionage Act violate the First Amendment guarantee of free speech?
I think that this is not the legal issue that is targeted in the book on this case? I concluded that it is more about whether this pamphlet and political expression is protected under the First Amendments rights of the Constitution for the defendant. Or whether obstruction of war time ideals and peace is a crime in a state of unrest?
-
- Apr 2014
-
www.newschallenge.org www.newschallenge.org
-
Reproducibility
Reproducibility is mentioned in the title of this section, but it is not mentioned elsewhere in the document and I don't see it addressed in what's written in this section.
-