gabrielbull
Repos
59
Followers
404

React UI Components for macOS High Sierra and Windows 10

9442
448

HTML to PDF converter for PHP

9527
1686

Server Side Rendering library for React Router v4.

435
16

A pure PHP library for reading and writing word processing documents

6617
2477

Determine the cursor aim for triggering mouse events.

364
14

Send email across all platforms using one interface

327
34

Events

issue comment
ChunkLoadError (timeout: (chunks/xxx)

This issue still occurs in production environment and happens quite a lot using latest NextJS.

Created at 3 weeks ago
Created at 1 month ago
create branch
gabrielbull create branch main
Created at 1 month ago
create repository
gabrielbull create repository
Created at 1 month ago
gabrielbull create branch main
Created at 1 month ago
create repository
gabrielbull create repository
Created at 1 month ago
Responding to styled-component's parent state changed based on a condition is broken

Environment

  • styled-components: 5.3.6

Reproduction

Full reproduction available here: https://codesandbox.io/s/nostalgic-night-z6i07y?file=/src/App.tsx

Video of the bug: Enregistrement d’écran, le 2023-01-20 à 11 26 27 2023-01-20 11_28_19

The gist of the bug can be simplified to this:

import styled from "styled-components";

const MyComponent = styled("div")<{ disabled: boolean; }>`
  button:active & {
    background-color: ${({ disabled }) => disabled ? "transparent" : "red"};
  }
`;

Steps to reproduce

In the code sandbox, toggling the disabled prop will change the expected active color of the span element.

  1. Have a styled-component whose parent state you want to respond to
  2. Use a prop to conditionally change a css style when the parent state is changed (:active, :focus, etc...)
  3. Change that prop

Expected Behavior

In the code sandbox above, the expected behavior would be for the a:active > & color to return to the default one when the disabled toggle is switched off.

Actual Behavior

In the code sandbox above, the actual behavior i for the a:active > & color to remain on the disabled one after toggling the disabled prop at least once.

Created at 2 months ago
error PostgreSQL version: dial tcp: lookup 192.168.1.1:53: server misbehaving

I have the same issue. It is intermittent as well, one time it will work, then it won't.

Created at 2 months ago