11 Matching Annotations
  1. May 2022
  2. Jan 2022
  3. Dec 2021
    1. What you're trying to do is known as the "Application Shell" architectural pattern.

      The trick is to have your service worker's fetch handler check to see whether an incoming request is a navigation (event.request.mode === 'navigate'), and if so, respond with the cached App Shell HTML (which sounds like /index.html in your case).

      A generic way of doing this would be:

      self.addEventListener('fetch', (event) => {
        if (event.request.mode === 'navigate') {
        } else {
          // Your other response logic goes here.

      This will cause your service worker to behave in a similar fashion to how you're web server is already configured.

  4. Nov 2021
  5. Oct 2021
    1. How did your router even get a 'rating' of 5300 Mbps in the first place? Router manufacturers combine/add the maximum physical network speeds for ALL wifi bands (usually 2 or 3 bands) in the router to produce a single aggregate (grossly inflated) Mbps number. But your client device only connects to ONE band (not all bands) on the router at once. So, '5300 Mbps' is all marketing hype.

      Why routers get such a high rating

    2. The only thing that really matters to you is the maximum speed of a single 5 GHz band (using all MIMO antennas).

      What to focus on when choosing a router

  6. May 2020
    1. Your Gateway supports networking using coaxial cables, Ethernet, or Wi-Fi, making it one of the most versatile and powerful gateways available.
  7. Oct 2018
  8. May 2017
    1. <Route path="/" component={ List } /> <Route path="/react" component={ Detail } />

      Note, in newer versions of the router, this won't work because a route can only contain one child. Try wrapping the two routes in a <switch>:</switch>

          <Route exact path="/" component={ List } />
          <Route path="/react" component={Detail}  />
    1. <Router> <Route path="/" component={ Detail } /> </Router>,

      In newer versions of React, this won't work without a history prop and hashHistory. Depending on how you import hashHistory, the code will look something like this:

      let hashHistory = createHashHistory();
      <Router history={hashHistory}>
          <Route path="/" component={ Detail } />