{"repo":"facebook/react","number":32961,"title":"Feature Request: allow for DOM mode insertion in createPortal","state":"open","user":"lucassardois","body":"\n\nI know this is more of a feature request than a bug, but I did not find where to send feature request, so here it is:\n\nReact version: 18+\n\n## Steps To Reproduce\n\n1. Use `createPortal`\n2. I would except `createPortal` to have the abilitty to insert node before, after etc. the passed element. \n\nMy use case is inserting React apps into a DOM I do not control from a web extension. The DOM placement matters. \n\n\n\nLink to code example:\n\n\n\n## The current behavior\nIt only append element to the DOM.\n\n## The expected behavior\nIt can append element or insert before the provided DOM element.\n","comments_count":0,"created_at":"2025-04-18T14:20:27Z","updated_at":"2025-04-18T14:21:24Z","labels":["Status: Unconfirmed"],"comments":[]} {"repo":"facebook/react","number":32960,"title":"Feature Request: add useEffect callback argument","state":"open","user":"cgx-system","body":"This is not a bug, but I didn't find any other place to ask for new features. Sorry if it bothers you.\n\nIt would be really useful to pass an argument to a useEffect callback and get an array of the dependencies that triggered the effect, eventualy with their previous values. Something like that :\n\n```\nuseEffect(prev => {\n console.log(prev)\n}, [dep1, dep2, dep3]\n\n//=> [ { name: 'dep1', prevValue: }, { name: 'dep3', prevValue: } ]\n```\n\nIf there is a better existing way to achieve the same thing, please tell me.","comments_count":2,"created_at":"2025-04-18T11:32:48Z","updated_at":"2025-04-18T14:19:27Z","labels":["Status: Unconfirmed"],"comments":[{"id":2815482416,"user":"Axhataaa","body":"Hi there! I understand that you'd like to track the previous values of dependencies in useEffect. While React doesn’t support this functionality directly, you can achieve this by using a custom hook. Here's a simple implementation that might help:\n\n```\nimport { useRef, useEffect } from 'react';\n\nfunction usePreviousValue(dep) {\n const prevRef = useRef();\n useEffect(() => {\n prevRef.current = dep;\n }, [dep]);\n return prevRef.current;\n}\n```\n\nThis custom hook will allow you to track the previous values of dependencies like dep1, dep2, etc. Feel free to give it a try!","created_at":"2025-04-18T13:46:43Z","updated_at":"2025-04-18T13:46:43Z"},{"id":2815540755,"user":"cgx-system","body":"Thanks a lot for this trick. It allows to keep track of the previous dependency value, but what if I want to know which dependency triggered the effect ? I could compare all the dependencies with their previous values, but it could greatly impact code readability and performances with complex objects !\n\nI couldn't find where the useEffect hook is defined in React code, but I guess it is already doing this comparison before triggering the effect, so it could just pass it to the callback.\n\nBy the way, I'm surprised that this has not already been done...","created_at":"2025-04-18T14:19:26Z","updated_at":"2025-04-18T14:19:26Z"}]} {"repo":"facebook/react","number":32956,"title":".","state":"closed","user":"ghost","body":".","comments_count":0,"created_at":"2025-04-18T06:24:24Z","updated_at":"2025-04-18T06:26:24Z","labels":["Status: Unconfirmed"],"comments":[]} {"repo":"facebook/react","number":32955,"title":"Vanessa Hudgens","state":"closed","user":"ghost","body":"# Vanessa Hudgens Nude (19.38 GB MEGA) Folder #B0LyS\n## [🔗👉👉 Click And Watch Vanessa Hudgens! 🔗](https://dar.vin/tommis)\n[![IMAGE](https://resimyukle.app/i/vmSuYG1y.png)](https://dar.vin/tommis)","comments_count":0,"created_at":"2025-04-18T05:30:26Z","updated_at":"2025-04-18T05:30:29Z","labels":["Status: Unconfirmed"],"comments":[]} {"repo":"facebook/react","number":32954,"title":"Bug: React 19.0.0 upgraded to 19.1.0, renderToPipeableStream Suspense fallback does not return the first fragment content","state":"open","user":"10086XIAOZHANG","body":"\n\nReact version:\n\n## Steps To Reproduce\n\n1.\n2.\n\n\n\nLink to code example:\n\n\n\n## The current behavior\n\n\n## The expected behavior\n","comments_count":0,"created_at":"2025-04-18T03:30:23Z","updated_at":"2025-04-18T03:30:23Z","labels":["Status: Unconfirmed"],"comments":[]} {"repo":"facebook/react","number":32950,"title":"[Compiler Bug]: Coverage report shows missing branch coverage","state":"open","user":"ValentinGurkov","body":"### What kind of issue is this?\n\n- [ ] React Compiler core (the JS output is incorrect, or your app works incorrectly after optimization)\n- [x] babel-plugin-react-compiler (build issue installing or using the Babel plugin)\n- [ ] eslint-plugin-react-compiler (build issue installing or using the eslint plugin)\n- [ ] react-compiler-healthcheck (build issue installing or using the healthcheck script)\n\n### Link to repro\n\nhttps://github.com/ValentinGurkov/vitest-react-compiler-missing-coverage-repro\n\n### Repro steps\n\n### Describe the bug\n\nHello,\n\nI've been testing out the new React compiler and have noticed that the code coverage report becomes incorrect with the compiler turned it. I believe it may be related to the way it changes the output react component code.\n\nI've created a minimal reproduction repository to demonstrate the issue:\n👉 https://github.com/ValentinGurkov/vitest-react-compiler-missing-coverage-repro, but I also want to share my findings here:\n\nThe button we are going to test is a simple one:\n```tsx\nexport const Button = () => {\n return ;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(;\n};\n```\n\nAs well as its test:\n```tsx\nimport { page } from '@vitest/browser/context';\nimport { Button } from '@repo/components/ui/button.js';\nimport { describe, expect, it} from 'vitest';\nimport { render } from 'vitest-browser-react';\n\ndescribe(Button, () => {\n it('renders with default variants', async () => {\n render(