{"id":18770826,"url":"https://github.com/gamote/expo-babel-void-optional-chain-issue","last_synced_at":"2025-10-23T17:19:48.200Z","repository":{"id":233687093,"uuid":"739474719","full_name":"Gamote/expo-babel-void-optional-chain-issue","owner":"Gamote","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-05T18:00:20.000Z","size":434,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"sdk-50","last_synced_at":"2024-12-29T07:42:41.302Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gamote.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-01-05T16:50:26.000Z","updated_at":"2024-01-05T16:51:17.000Z","dependencies_parsed_at":"2024-04-17T05:02:33.142Z","dependency_job_id":"34ace12d-ff4d-42ad-a44b-921cdeaeff41","html_url":"https://github.com/Gamote/expo-babel-void-optional-chain-issue","commit_stats":null,"previous_names":["gamote/expo-babel-void-optional-chain-issue"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gamote%2Fexpo-babel-void-optional-chain-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gamote%2Fexpo-babel-void-optional-chain-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gamote%2Fexpo-babel-void-optional-chain-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gamote%2Fexpo-babel-void-optional-chain-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gamote","download_url":"https://codeload.github.com/Gamote/expo-babel-void-optional-chain-issue/tar.gz/refs/heads/sdk-50","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239677976,"owners_count":19679174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T19:21:46.155Z","updated_at":"2025-10-23T17:19:43.146Z","avatar_url":"https://github.com/Gamote.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\n\nIt seems that `void someFunction?.()` skips the function call in production builds.\n\nI have checked the transpiled code using the debugger and `void someFunction?.()` is transpiled to `undefined` in production builds.\n\nIf we do `someFunction?.()` or `void someFunction()` it will work just fine.\n\n### Additional information\n\n- I have tested this on iOS and Android\n- I have tested this on SDK 49 and it works as expected\n- When starting with `expo start` it works as expected\n\n## Reproduce the issue\n\n1. Clone the repo\n2. (optional) Run `nvm use`\n3. Run `yarn`\n4. Start the app `yarn ios --no-dev` or `yarn android --no-dev`\n\n## Expected behaviour\n\nThree alerts should be shown, one after the other.\n\n## Actual behaviour\n\nOnly two alerts are shown.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamote%2Fexpo-babel-void-optional-chain-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgamote%2Fexpo-babel-void-optional-chain-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamote%2Fexpo-babel-void-optional-chain-issue/lists"}