16 Matching Annotations
- Jul 2022
-
bdunagan.com bdunagan.com
-
All seem focused on rendering the 404 page manually. However, I wanted to make rescue_from work. My solution is the catch-all route and raising the exception manually.
-
- Apr 2021
-
serverfault.com serverfault.com
-
perl -ne 'chomp(); if (-e $_) {print "$_\n"}'
-
xargs -i sh -c 'test -f {} && echo {}'
-
-
www.youtube.com www.youtube.com
-
Yeah, I probably think of using foam before anyone else does.
-
- Feb 2021
-
jrsinclair.com jrsinclair.com
-
And they are not the only way to handle errors.
-
-
github.com github.com
-
This probably looks a little different than you're used to. Rails commonly handles this with a before_filter that sets the @account instance variable.
-
- Dec 2020
-
github.com github.com
-
This was implemented (completely differently to anything discussed in this issue) in #642.
-
- Nov 2020
-
hackernoon.com hackernoon.com
-
Programmers working in different kinds of programming languages often come up with radically different solutions to problems.
-
-
material.io material.io
-
Depending on your needs, you can use the Simple Approach: Wrapping MDC Web Vanilla Components, or the Advanced Approach: Using Foundations and Adapters.
-
-
-
github.com github.com
-
Thanks for the PR @RedHatter. I think it's important to be able to specify which warnings are being disabled, and I'm nervous about the use of the code frame for this sort of thing (feels brittle), so I've opened a new PR, #3351. Will close this in favour of that
-
- Oct 2020
-
-
About the argument against it, "{@const will make code less consistent ": I think the same is true now, since people can come up with very different ways of dealing with the "computed value inside each loop/if function" problem. Some extract components, some use functions, some will prepare the array differently beforehand.
-
- Sep 2020
-
medium.com medium.com
-
While Webpack is focused on using CommonJS as its primary module system and converting everything to that, Rollup decided to take the opposite approach — focusing on ES Modules instead.
-
-
engineering.mixmax.com engineering.mixmax.com
-
But this is only a halfway decent way to clarify that this is an external dependency, because the only way to resolve a peer dependency warning is to install react from npm—there's no way to notify npm that you resolve the dependency to a browser global. So peer dependencies should be avoided in favor of external declarations. Then Rollup will take care of warning about "unresolved dependencies", even if external declarations can't express a particular version range with which your library is compatible like peer dependencies can.
Interesting. Didn't realize. From my perspective, I usually do install packages via npm, so wouldn't have known about this problem.
npm and rollup both try to solve this problem but in different ways that apparently conflict? So if a lib author lists peerDependencies then it can cause problems for those getting lib via browser (CDN)? How come so many libs use it then? How come I've never heard of this problem before?
-
-
-
<LazyLoad component="img" data-src="giant-photo.jpg" class="my-cool-image" />
-
<LazyLoad> <img data-src='giant-photo.jpg'/> </LazyLoad>
-