profile
viewpoint
Antoine Rousseau antoinerousseau Toulouse, France https://antoine.rousseau.im/ Freelance Web developer

react-icons/react-icons 4590

svg react icons of popular icon packs

MoOx/react-toulouse 8

♻️ Meetups et Workshops React sur Toulouse.

antoinerousseau/flickr2google 2

Migrate your Flickr photo sets to Google albums

antoinerousseau/form-to-ses 2

Receive POST data and send them through Amazon SES (ideal for contact forms)

antoinerousseau/node-amazon-ses 2

A simple wrapper for Amazon Simple Email Service (Amazon SES)

antoinerousseau/gatsby-presentation 1

Présentation Gatsby @ Meetup React Toulouse

antoinerousseau/gatsby-starter-antoine 1

My opinionated Gatsby.js starter

antoinerousseau/hyphenslug 1

Opinionated Node.js function that returns a slug made only of lowercase letters, numbers and hyphens, from any string.

push eventantoinerousseau/gatsby-starter-antoine

Antoine Rousseau

commit sha d9c3a2e25ba611bf279e8d5f26d35f9704643c9c

wrapRootElement

view details

Antoine Rousseau

commit sha 3527cee443dc753f69902e1b7dba55880a38ba18

deps

view details

push time in 12 days

push eventantoinerousseau/gatsby

Michal Piechowiak

commit sha 69383a8d89c504cc0da91e37a9b9b721954086b3

fix(gatsby-dev-cli): show spawned processes output unless `--quiet` is used (#24607) * fix(gatsby-dev-cli): show spawned processes output unless `--quiet` is used * fix test

view details

Alvaro

commit sha 181eb895102a69c37c983f76b893b66ce2d48de7

Adds the gatsby-starter-hello-world-shopify starter (#24403)

view details

Anish Aggarwal

commit sha e4e13d74257b81f56cb85499ac638f5468c49a2b

fixed links in html-generation.md (#24530)

view details

Juliano Rafael

commit sha 3717ad6638c9d2c60fe45f169919a01032ca7b07

fix(gatsby): show correct `serve` info when running on another port (#24591)

view details

Madalyn

commit sha 509b0b20d1b308032d5ac10984b5580e59a355a3

Update pair-programming.md (#24498) Co-authored-by: Obinna Ekwuno <obinnacodes@gmail.com> Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>

view details

Ward Peeters

commit sha 789f37ead2af9225f55437bff14359684d56cca8

fix(blog): remark errors (#24550)

view details

Nicholas Duffy

commit sha 8d49b109a1355d302b16172106178123b20100da

Prefix new benchmark environment variables (#24611)

view details

Eric Howey

commit sha e579ba78186953a6ccd9a232c3a9ce6f9322c566

chore(starters): add gatsby-starter-catalyst-helium (#24598)

view details

Monica Powell

commit sha 98344402662a1f1cc89577e5d3cf7fd6239b71d2

chore: update siteUrs from netlify.com -> netlify.app (#23808) Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com> Co-authored-by: Ward Peeters <ward@coding-tech.com>

view details

Max Stoiber

commit sha 3429474b3bf34a0db4748c9ce3d8e4447bf9a153

feat(gatsby-recipes): Add description to Gatsby Plugin resource (#24602) * Add `description` to npm package resource * Use require.resolve instead of manually joining node_modules path * Use resolve-pkg to safely resolve packages just like require() would do instead of manually joining paths with node_modules * Add gatsbyPlugin.description to provider * Throw nice error when theme is not npm installed and shadowable/ed files cannot be resolved * Fix tests * Potential Windows unit test fix * Remove resolve-pkg module as it breaks Windows * Use resolveCwd to fix monorepo compatibility for finding shadowed/able files * Temporarily add console.log to debug windows issue * Add some more logs for debugging * Fix windows * remove outdated dep from yarn lockfile

view details

Hashim Warren

commit sha 9b077c6e87956c767dc506b6ef15eb8720f47841

(blog) Gatsby Gazette - May 2020 (#24581) * Initial draft of Gataby Gazette - May 2020 * chore: format * Add strapi image * Add screenshot and fix typos * remove curly quotes * Remove emojis * Add frontmatter * Update docs/blog/2020-05-29/index.md Co-authored-by: Dustin Schau <DSchau@users.noreply.github.com> * Move content to new folder * Add Strapi screenshot * Delete old Gazette article * Delete old strapi screenshot * Fix typos and add links * Add link to Gatsby Days Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com> Co-authored-by: Dustin Schau <DSchau@users.noreply.github.com>

view details

Max Stoiber

commit sha a6eb21b2602c272b8a17d2ca1bb9952c778bb810

feat(gatsby): serve Admin from develop parent process (#23734) * Server static admin app from parent process * Start Recipes GraphQL server when running develop and fetch fresh port in admin * Setup gatsby-inteface and strict-ui * Build gatsby admin navbar * Proper headings on the dash * Style rest of dashboard * Add return type to createUrqlClient * Update gatsby admin running instructions * Add instructions to replace ___loader with window.___loader * Remove unused components * Bump strict-ui and test local site dev * Add GATSBY_EXPERIMENTAL_ENABLE_ADMIN feature flag * Resolve type issue by pinning version of csstype to 2.6.10 * Fix package.json for gatsby-admin package * Update packages/gatsby-admin/README.md Co-authored-by: Lennart <lekoarts@gmail.com> * Remove built-in plugin * Add some more technical docs * Fix prettier Co-authored-by: Lennart <lekoarts@gmail.com>

view details

Max Stoiber

commit sha 3a1b7477afea16ca7e2407c774c1b26e466a6a31

chore(release): Publish - gatsby-admin@0.1.54 - gatsby-cli@2.12.38 - gatsby-dev-cli@2.7.6 - gatsby-recipes@0.1.32 - gatsby-theme-blog-core@1.5.29 - gatsby-theme-blog@1.6.29 - gatsby-theme-notes@1.3.55 - gatsby-theme-ui-preset@0.0.44 - gatsby@2.22.13

view details

John Otander

commit sha bd0b5585d6665aa83f1d8af2c80ef5d879c99721

fix(gatsby-recipes): Clean up dist folder before build (#24663)

view details

Kyle Mathews

commit sha 94f490cf1c54d1cb1e4e3dfda1e484541982c483

chore(release): Publish - gatsby-admin@0.1.55 - gatsby-cli@2.12.39 - gatsby-recipes@0.1.33 - gatsby-theme-blog-core@1.5.30 - gatsby-theme-blog@1.6.30 - gatsby-theme-notes@1.3.56 - gatsby-theme-ui-preset@0.0.45 - gatsby@2.22.14

view details

Kyle Mathews

commit sha fb899463777a0c61271338bb2faab231f2a07450

fix(gatsby-recipes): Don't use 4000 as default recipes port as commonly used by people in apps (#24665) fixes https://github.com/gatsbyjs/gatsby/issues/24656

view details

Kyle Mathews

commit sha 200b3c1179069eaad657d09d55f969203cb1845e

chore(release): Publish - gatsby-admin@0.1.56 - gatsby-cli@2.12.40 - gatsby-recipes@0.1.34 - gatsby-theme-blog-core@1.5.31 - gatsby-theme-blog@1.6.31 - gatsby-theme-notes@1.3.57 - gatsby-theme-ui-preset@0.0.46 - gatsby@2.22.15

view details

Lennart

commit sha ff4810c3eb7017f9f3d076d11168a4e5e813eb86

fix(www): Starter star sorting (#24668)

view details

Nicholas Duffy

commit sha e7d21aa65f5d2ae25b06baeec646abc0df5fbea8

Fix Sanity data update script (#24643) * Fix Sanity data update script * Run yarn format

view details

Nicholas Duffy

commit sha ce267dafd7d47a47537e4572b611438551fe8b41

Update benchmark reporting plugin verisons (#24672)

view details

push time in 14 days

pull request commentgatsbyjs/gatsby

fix(gatsby) api hooks: typescript return types

up

antoinerousseau

comment created time in 14 days

startedgrid-js/gridjs

started time in 15 days

startedoorestisime/gatsby-source-instagram

started time in a month

push eventantoinerousseau/gatsby-starter-antoine

Antoine Rousseau

commit sha 9337807489a1174593a7738991a2641b5340a381

deps

view details

push time in a month

starteddenysdovhan/wtfjs

started time in a month

issue commentgatsbyjs/gatsby

Error / page resources for / not found. Not rendering React

@andrzejwp yes it's about helping each other, not about posting bossy comments like "please fix it!" with no useful information to actually fix the issue.

antoinerousseau

comment created time in a month

issue commentgatsbyjs/gatsby

Error / page resources for / not found. Not rendering React

Please fix it!

@SoldierCorp please read about what Open Source is and maybe try fixing it yourself.

antoinerousseau

comment created time in a month

push eventantoinerousseau/gatsby

Francesco Agnoletto

commit sha 57ca573b90c581f31003239d704357f7595dbb2d

chore(gatsby): convert tests to typescript (#24235) * Convert pages reducer test * Convert status reducer tests * Update snaps * Convert redirects tests * Update snaps

view details

Michael

commit sha b49f74b46e63007b3889f10df49ad2b0e0a93590

fix(gatsby-source-contentful): Use https instead of http when downloading assets (#24227) Co-authored-by: Michael Zoubarev (PCB) <Michael.Zoubarev@pcbank.ca>

view details

Dan Dascalescu

commit sha 85bb822b2c0cf0f40e898549f56e876a3ceaa392

docs: clarify props.location (#24134) * docs: clarify props.location * docs: no metasyntactic variables Co-authored-by: Aisha Blake <aisha@gatsbyjs.com> Co-authored-by: Aisha Blake <aisha@gatsbyjs.com>

view details

Muescha

commit sha cef1428bc6b543b17c593db867fba4fd654ce501

fix(docs): creating and modifying pages - pageContext (#24237)

view details

Martin Andersen

commit sha 419caaa7f1716f434395a773d36dfe003aea7946

chore(starters): add gatsby-starter-banshorian (#24061)

view details

Kyle Gill

commit sha 5cf3b1d69531423e75b781184edb4c33fc0aef09

chore(starters): remove broken tags (#24232)

view details

Dan Dascalescu

commit sha 0f2e3cdda77fb6d22b27d506ad79c48e6ec056c9

docs: more impartial auth recommendations (#24251)

view details

pkino

commit sha 496eba40f265d5ab95fd443d2e83c34522ae795d

chore(starter): modify a needless feature (#24249)

view details

Mohamed sidibe

commit sha 1a0837de3316065037834068321b71a78534a50d

chore(starters): add expo-gatsby-starter (#24094)

view details

Viet Nguyen

commit sha 27635c36b58e8163c6705af810c7c086ab7b74b8

chore(starters): add gatsby-starter-blog-material-clarisse (#24087)

view details

carrotderek

commit sha 1607f1d80bc1fd28b7c43fd0fdd74bca27935888

chore(gatsby): Migrate reducers/nodes-touched to TypeScript (#24247)

view details

chris

commit sha 0a746ac1e27c1b1cb7b94a33ad048d63e95766e3

chore(docs): Add deploy to Azure guide (#24230) * adding deploy to azure guide * correcting name * chore: format * Update deploying-to-azure.md * Update docs/docs/deploying-to-azure.md Co-authored-by: Aisha Blake <aisha@gatsbyjs.com> * Update docs/docs/deploying-to-azure.md Co-authored-by: Aisha Blake <aisha@gatsbyjs.com> * addressing comments * Apply suggestions from code review * Fix linter warnings Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com> Co-authored-by: Aisha Blake <aisha@gatsbyjs.com>

view details

Abhishek Jakhar

commit sha 8f9acb125d550fbbbb61062854f721e9186e4715

fix(www): fixes the padding issues on homepage for mobile screen sizes (#24216) * fixed the left and right padding for diagram section of homepage on mobile screen * fixed the left and right padding for card used inside homepage features section * fixed the bottom padding of homepage features section on mobile * converted padding bottom rule to theme-ui's array syntax inside HomepageFeatures component * redundant import removed from homepage-features

view details

Ward Peeters

commit sha 925610ba9bff080c05fe7dcb38b7bad76289fd13

feat(gatsby-plugin-preact): enable prefresh (#24153) Enable prefresh (react-refresh) for gatsby-plugin-preact. It fixes the open issue of not having hot reloading with preact.

view details

Ward Peeters

commit sha ec8b8414306dcd0b647b79b7f46af4815e52d375

update yarn.lock

view details

Ward Peeters

commit sha 97a3d0c57cabe8422eaa9a3d660b8bb8da3ff0b0

chore(release): Publish - gatsby-admin@0.1.45 - gatsby-plugin-google-tagmanager@2.3.3 - gatsby-plugin-preact@4.0.0 - gatsby-source-contentful@2.3.11 - gatsby-theme-blog-core@1.5.20 - gatsby-theme-blog@1.6.20 - gatsby-theme-notes@1.3.46 - gatsby-theme-ui-preset@0.0.35 - gatsby@2.22.4

view details

Blaine Kasten

commit sha 342d835b6e02e766fd3a2abd9cb7c4fc7daf28cc

Ts migration/convert yurnalist logger (#24224) * chore(gatsby-cli): Convert yurnalist logger to TypeScript * chore(gatsby-cli): Convert yurnalist logger to TypeScript * chore(gatsby-cli): Convert yurnalist logger to TypeScript * fix lint error * support tsx * fix tsx support * fix build process in cli

view details

Nat Alison

commit sha 4e8509150e7c3912f5ae614884d4f422a791a002

refactor(www) Move local API calls into just part of gatsby-node (#24102) * Move api calls plugin to gatsby-node * disable typescript for now * get rid of postinstall * wap

view details

Blaine Kasten

commit sha 4898d1863628a65231f9257bb0e939457baaa42b

chore(gatsby-cli): Migrate unit test to typescript (#24281)

view details

nikoladev

commit sha c27867865d819ab0505af4c80d527aaf2a2e4df5

chore(gatsby): update http-proxy to fix vulnerability (#24294) * update http-proxy to fix vulnerability https://www.npmjs.com/advisories/1486 * sync yarn.lock Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>

view details

push time in a month

startedsupabase/supabase

started time in 2 months

Pull request review commentgatsbyjs/gatsby

fix(gatsby) api hooks: typescript return types

 export interface GatsbyNode {   setFieldsOnGraphQLNodeType?(     args: SetFieldsOnGraphQLNodeTypeArgs,     options: PluginOptions-  ): any+  ): GraphQLFieldConfigMap<any, any>   setFieldsOnGraphQLNodeType?(     args: SetFieldsOnGraphQLNodeTypeArgs,     options: PluginOptions-  ): Promise<any>+  ): Promise<GraphQLFieldConfigMap<any, any>>   setFieldsOnGraphQLNodeType?(     args: SetFieldsOnGraphQLNodeTypeArgs,     options: PluginOptions,     callback: PluginCallback-  ): void+  ): GraphQLFieldConfigMap<any, any>

Right, thanks, I went ahead and made that return type mandatory to improve readability (callback?: PluginCallback<void>).

antoinerousseau

comment created time in 2 months

push eventantoinerousseau/gatsby

Antoine Rousseau

commit sha 7595898e6ad1307595afddd5f20c5cf3005e2913

plugin callback return type

view details

push time in 2 months

push eventantoinerousseau/gatsby-starter-antoine

Antoine Rousseau

commit sha 515352c5a026ca6b236c4d3222e6de6910343bbf

update eslint and bugsnag

view details

push time in 2 months

push eventantoinerousseau/gatsby-starter-antoine

Antoine Rousseau

commit sha d27eacbca40addfaf4250c0f1d674cf0470b8541

update eslint and bugsnag

view details

push time in 2 months

issue closedbugsnag/bugsnag-js

[@bugsnag/plugin-react] createErrorBoundary() type

Using TS 3.9.3, with

export const ErrorBoundary = Bugsnag.getPlugin("react")?.createErrorBoundary(React)

I get this error:

JSX element type 'ErrorBoundary' does not have any construct or call signatures.
ts(2604)

Capture d'écran 2020-05-24 21 50 55

closed time in 2 months

antoinerousseau

issue commentbugsnag/bugsnag-js

[@bugsnag/plugin-react] createErrorBoundary() type

Ok, as I was trying to make a reproduction example, I realized that it's because createErrorBoundary() can return undefined, as clearly mentioned in the doc, my bad, so I should test for the existence of its return value.

const children = (
  <UserProvider>
    <App />
  </UserProvider>
)
return ErrorBoundary ? (
  <ErrorBoundary FallbackComponent={ErrorComponent}>{children}</ErrorBoundary>
) : (
  children
)

Sorry for the false alarm!

Also it would be cool to export the BugsnagErrorBoundary and BugsnagPluginReactResult in order to sometimes use them :)

In particular, I would like to do this:

const plugin = Bugsnag.getPlugin("react") as BugsnagPluginReactResult
export const ErrorBoundary = plugin.createErrorBoundary()

Because I know the plugin exists, and this would simplify the use of the boundary since it wouldn't be typed as | undefined

antoinerousseau

comment created time in 2 months

issue commentbugsnag/bugsnag-js

[@bugsnag/plugin-react] createErrorBoundary() type

Yes I'm talking about v7.1.0

antoinerousseau

comment created time in 2 months

pull request commentHopding/pdf-lib

Feature/draw line cap style

wow that was fast, thanks!

taxilian

comment created time in 2 months

pull request commentHopding/pdf-lib

Feature/draw line cap style

Ok cool, and no worries!

taxilian

comment created time in 2 months

pull request commentHopding/pdf-lib

Feature/draw line cap style

Sorry I'm late to the party, but was the breaking change necessary? (required prop) Couldn't we have lineCap?: LineCapStyle; instead of lineCap: LineCapStyle | undefined;?

taxilian

comment created time in 2 months

issue openedbugsnag/bugsnag-js

[@bugsnag/plugin-react] createErrorBoundary() type

Using TS 3.9.3, with

export const ErrorBoundary = Bugsnag.getPlugin("react")?.createErrorBoundary(React)

I get this error:

JSX element type 'ErrorBoundary' does not have any construct or call signatures.
ts(2604)

Capture d'écran 2020-05-24 21 50 55

created time in 2 months

push eventantoinerousseau/gatsby-starter-antoine

Antoine Rousseau

commit sha f72bd8887bd1c25e4996326a0e021715feeb1deb

document src import alias

view details

push time in 2 months

startededsu/anon

started time in 2 months

startedfacebookexperimental/Recoil

started time in 2 months

startedfabiospampinato/store

started time in 2 months

startedSwizec/useAuth

started time in 2 months

CommitCommentEvent

issue openedRolstenhouse/unofficial-apis

Outdated repo

See https://github.com/alkawryk/tinderjs/issues/41

created time in 2 months

issue commentalkawryk/tinderjs

WE ARE MAINTAINING THIS MODULE AT ANOTHER REPO

you should update your README instead :)

mayeaux

comment created time in 2 months

push eventantoinerousseau/antoine.rousseau.im

Antoine Rousseau

commit sha 21ae0d43f2be8e3a7fcc86e681857c5d9dc79f24

change repo name

view details

push time in 2 months

push eventantoinerousseau/antoinerousseau.github.com

Antoine Rousseau

commit sha 06125afeecc4458b37fbabf9fbc4a12dd5eba3c0

references and deps

view details

push time in 2 months

push eventantoinerousseau/antoinerousseau.github.com

Antoine Rousseau

commit sha a515dad2d66fa193398c4edf3f0598c9f61ceafc

references and deps

view details

push time in 2 months

issue commentgatsbyjs/gatsby

Wrong return types for some gatsby-ssr hooks

@LekoArts #24262 :)

antoinerousseau

comment created time in 2 months

PR opened gatsbyjs/gatsby

[TypeScript] fix api hooks return types

Description

Some hooks expect to return any, when they are not expected to return anything. Forcing us to return something, even if it's null, when implementing them in TypeScript.

Documentation

https://www.gatsbyjs.org/docs/ssr-apis/

Related Issues

Fixes #24229.

+25 -25

0 comment

1 changed file

pr created time in 2 months

create barnchantoinerousseau/gatsby

branch : hook-typings

created branch time in 2 months

issue commentgatsbyjs/gatsby

Wrong return types for some gatsby-ssr hooks

@LekoArts actually I was about to make a PR on that file, but I decided to open an issue first, to make sure I wasn't mistaken. Can I just replace those any with void? Do we agree that these hooks shouldn't return anything special?

antoinerousseau

comment created time in 2 months

issue openedgatsbyjs/gatsby

Wrong return types for some gatsby-ssr hooks

Description

Some hooks like onRenderBody expect to return any, when the documentation shows an example returning void (no return statement).

Steps to reproduce

  • Create a TS file with
import type { GatsbySSR } from "gatsby"

import React from "react"

export const onRenderBody: GatsbySSR["onRenderBody"] = ({ setHeadComponents }) => {
  setHeadComponents([<link key="test" />])
}
  • Import it in gatsby-ssr.js like:
exports.onRenderBody = require("./src/gatsby/onRenderBody").onRenderBody

You might need to add require("ts-node").register() to gatsby-config.js to make TS work. Or you can just start from https://github.com/antoinerousseau/gatsby-starter-antoine

Expected result

No error. Like in the doc: https://www.gatsbyjs.org/docs/ssr-apis/#onRenderBody

Actual result

TS error: Type 'void' is not assignable to type 'Promise<any>' (or to type 'any')

Environment

  System:
    OS: macOS 10.15.3
    CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 13.12.0 - ~/.nvm/versions/node/v13.12.0/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.4 - ~/.nvm/versions/node/v13.12.0/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 81.0.4044.138
    Firefox: 75.0
    Safari: 13.0.5
  npmPackages:
    gatsby: ^2.20.23 => 2.21.39
    gatsby-image: ^2.3.3 => 2.4.4
    gatsby-plugin-google-analytics: ^2.2.3 => 2.3.1
    gatsby-plugin-manifest: ^2.3.4 => 2.4.5
    gatsby-plugin-netlify: ^2.2.2 => 2.3.2
    gatsby-plugin-react-helmet: ^3.2.3 => 3.3.1
    gatsby-plugin-sharp: ^2.5.5 => 2.6.5
    gatsby-plugin-styled-components: ^3.2.2 => 3.3.1
    gatsby-plugin-typescript: ^2.3.2 => 2.4.2
    gatsby-source-filesystem: ^2.2.3 => 2.3.4
    gatsby-transformer-sharp: ^2.4.5 => 2.5.2

created time in 2 months

push eventantoinerousseau/gatsby-starter-antoine

Antoine Rousseau

commit sha f759e58fd3e808d7cb745894310ddcc42d30989b

fix wrapPageElement

view details

push time in 2 months

push eventantoinerousseau/gatsby-starter-antoine

Antoine Rousseau

commit sha 1c230e506712ed5928789448024b8b0b5aa04a5b

use gatsby types

view details

push time in 2 months

push eventantoinerousseau/gatsby-starter-antoine

Nicolas Zozol

commit sha a781bafe1536c6ea9a15812942e8451c0c0ba8f3

Adding onCreateNode hook (#2)

view details

push time in 2 months

PR opened gatsbyjs/gatsby

navigate returns a Promise

Description

Gatsby's navigate() function uses @reach/router's navigate() function, but the latter returns a Promise, while the former does not.

This PR aims to transfer this return value when available, and to be consistent with the typings.

Documentation

https://www.gatsbyjs.org/docs/gatsby-link/#how-to-use-the-navigate-helper-function https://reach.tech/router/api/navigate

Related Issues

Fixes #22151.

+5 -6

0 comment

2 changed files

pr created time in 2 months

create barnchantoinerousseau/gatsby

branch : navigate

created branch time in 2 months

issue commentgatsbyjs/gatsby

navigate() does not return a Promise

@dandv so why suggest documenting it?

antoinerousseau

comment created time in 2 months

issue commentgatsbyjs/gatsby

Mention that the navigate helper is not available during SSR

Devs rarely should be invoking functions like this during the render phase

Then maybe that should be mentioned in the docs? I have a landing page that my auth provider redirects users to after they verify their email. That landing page shows a toast and navigates to /app, in order to keep /app clean of signup logic state.

It's explained at https://www.gatsbyjs.org/docs/debugging-html-builds/

As @blainekasten stated, you shouldn't call navigate in your render phase, but rather in a side-effect, e.g. with useEffect.

dandv

comment created time in 2 months

startedxz/new.css

started time in 2 months

pull request commentantoinerousseau/gatsby-starter-antoine

Correction on GatsbyGraphQL type

Parfait merci ! :)

nicolas-zozol

comment created time in 2 months

push eventantoinerousseau/gatsby-starter-antoine

Nicolas Zozol

commit sha cbb653f5ea8c4094e4bfaed226e4b79105bd1ac9

Correction on GatsbyGraphQL type

view details

Antoine Rousseau

commit sha d6e5d36ad7f5d13ca5ccba8ca24c551eaf5dbcfe

Merge pull request #1 from nicolas-zozol/master Correction on GatsbyGraphQL type

view details

push time in 2 months

issue commentgatsbyjs/gatsby

navigate() does not return a Promise

@dandv PR welcome ;)

antoinerousseau

comment created time in 2 months

issue commentroehling/postsrsd

problem with dkim - google / gmail.com

So, is there a way to sign forwarded emails with DKIM when using postsrsd? I set up DKIM signing in Postfix and it stopped working when I installed postsrsd

RedJohn14

comment created time in 2 months

startedroehling/postsrsd

started time in 2 months

issue commentTrustroots/trustroots

Embrace new members from CouchSurfing shutting down

Oh! I didn't feel like getting involved in Angular dev, but why not help you with some React code! I'll try to get some free time for this :)

antoinerousseau

comment created time in 2 months

issue openedTrustroots/trustroots

Embrace new members from CouchSurfing shutting down

As you may have heard, CouchSurfing is now forcing its members to pay to use the website: https://blog.couchsurfing.com/couchsurfing-needs-your-help/

As a result, many members are unhappy and already looking for alternatives: https://www.facebook.com/groups/253525915764545/ https://twitter.com/Couchsurfing/status/1261234974604374016

BeWelcome is laggy and buggy with poor UX, HospitalityClub feels like browsing the Web in the 80's, so the only two options are Trustroots or a new CS.

I would like to know how you feel about listing the features that CS members love and are absent on Trustroots, so that we can consider adding some of them?

A few ones I'm thinking of:

  • References
  • Photos

created time in 2 months

issue commentgatsbyjs/gatsby

GatsbyLinkProps typescript type not working for custom <Link /> component

I could make a PR on Gatsby typings, what do you think? I could either Omit the ref as you did, or override the ref key, maybe with ref: LegacyRef<HTMLAnchorElement> Any insight?

jkjustjoshing

comment created time in 2 months

pull request commentDefinitelyTyped/DefinitelyTyped

[@reach/router] add generic state to location

I realize something: if I type location as being WindowLocation<MyState>, shouldn't location.state be of type MyState | undefined instead of MyState? Worse: if I type location as being WindowLocation<MyState | null>, location.state is still of type MyState instead of MyState | null... How can I add this safety to my code? Because if someone arrives on the page without a click on a stateful link, the state is null...

antoinerousseau

comment created time in 2 months

delete branch antoinerousseau/gatsby

delete branch : generic-state-location

delete time in 2 months

push eventantoinerousseau/gatsby

Antoine Rousseau

commit sha 11127fb4e3a3968e1f6b4a3130f3ab976689608e

Use WindowLocation["state"] as default location state Co-authored-by: Matt Kane <m@mk.gg>

view details

push time in 2 months

Pull request review commentgatsbyjs/gatsby

fix(gatsby): add generic locationState to types

 export const prefetchPathname: (path: string) => void  * export default (props: IndexProps) => {  *   ..  */-export type PageProps<DataType = object, PageContextType = object> = {+export type PageProps<DataType = object, PageContextType = object, LocationState = object> = {

I think the current alias is {} | null | undefined ("PoorMansUnknown"), taken from History.LocationState. But let's use it anyway.

antoinerousseau

comment created time in 2 months

push eventantoinerousseau/gatsby

Ernie Francis

commit sha d9849db4d2320cee256c5ff781519c27bebc041d

Update index.d.ts (#22187)

view details

Conrad Lin

commit sha 3821b13f5980ac69e6b5c5ed20956a4ee43c98ed

chore(starters): add gatsby-starter-strata-notion (#21933) * chore(starters): add gatsby-starter-strata-notion * Update starters.yml removing notion as a CMS tag for now as the API is not officially released Co-authored-by: Kyle Gill <kylerobertgill@gmail.com>

view details

Hashim Warren

commit sha 8ac4c21f9a96159c51127b0d330073f63ff906eb

(blog)100DaysOfGatsby Challenge 11 (#22178) * Draft blog post for challenge 11 * chore: format * Fix typo and change a heading Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>

view details

Kirill Vasiltsov

commit sha 4404af1462d0d6e70d4a2ab6ccf660eaae68302f

fix(gatsby): Show meaningful error when directory names are too long (#21518) * Truncate long paths automatically * Write out truncated paths * Map to correct disk paths * Serve page-data * Update snapshots * Remove console.log * Make opt-in into truncateLongPaths optional * Empty line * Fix bugs * Add comments and tests * Add tests and update snapshots * Change 200 to 255 * Remove string-hash dependency * Yarn.lock * Move function to utils * Look at segments instead of whole path * Detect problematic paths and panic in production * Reuse isWindows variable * Improve error messages, add development handling: * Change variable name * Remove truncatePaths from config scheme * Remove unneeded export * update config snapshot * Add comments * move most of logic to utils/path, same error for build/develop with slightly different message * no chalk in error messages * test: add basic test for tooLongSegmentsInPath * fixup error message Co-authored-by: Kirill Vasiltsov <v_kirill@yumemi.co.jp> Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>

view details

Martijn Janssen

commit sha 306cadd1759e62ff49503519f4234b05ee03cf35

chore(gatsby): migrate normalize-page-path to typescript (#22188)

view details

Alex Moon

commit sha 07319d061c8af703a22403d9cd52acd0b458706d

feat(gatsby-plugin-sitemap): handle different query structures and allow custom siteUrl resolution (#21948) * fix: handle allSitePage.nodes query stil. feat: allow custom resolver for siteUrl * docs(plugin-sitemap): add doces for updates * Update packages/gatsby-plugin-sitemap/README.md Co-Authored-By: LB <laurie@gatsbyjs.com> Co-authored-by: LB <laurie@gatsbyjs.com>

view details

Michal Piechowiak

commit sha 9de6d629fec3c5e72b5ac6a12a9b0713e84e9da5

chore(release): Publish - gatsby-cli@2.10.8 - gatsby-plugin-mdx@1.0.81 - gatsby-plugin-sitemap@2.2.29 - gatsby-theme-blog-core@1.2.23 - gatsby-theme-blog@1.3.24 - gatsby-theme-notes@1.1.21 - gatsby@2.19.40

view details

ryo

commit sha 099b4a05e933eeab207c0870510fa4b9763b3206

chore(gatsby): Convert query/utils to typescript (#22171) * chore(gatsby): Convert query/utils to typescript * update snapshot test

view details

csr632

commit sha f62001e1087de1c82482162bacd8a25be3b7bf51

fix(gatsby-plugin-mdx): make webpack rebuild when new scopes are created (#22121)

view details

Nitin Kumar

commit sha 1fb486fd032105fbdd77ac72835a09993124d7b2

chore(gatsby): fix typos across project (#22165)

view details

Liam Sheppard

commit sha 41be9c677618d0db903ade0fe129ed9cea983811

chore(showcase): Add clipchamp.com to site showcase (#22162)

view details

Michael

commit sha bf1eb90a1dfbda0fc2d84d1c24af002a532dd616

chore(gatsby-source-filesystem): fix jdoc (#22197)

view details

Nitin Kumar

commit sha 94f789eb0b638a6306b65380e0a667ddd34c1626

chore(gatsby): remove yarn.lock from gitignore (#22196) * chore(gatsby): ignore all yarn.lock except root * future proofing * restore package-lock ignoring Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>

view details

Miguel Alejandro Bolivar Portilla

commit sha 030d927cddbdc64f8d93d409a5ada7442d5e62bf

fix: runtime network/resource loading resilience fixes + restore e2e tests for it (#18051) * Blocking resources with before all it statements and then running * Only making CircleCI to test production runtime for speed up in local development test * Adding missing line * Removing requirements * Fixing typo on added test * Bringing back old circleCI config * Updating Cypress tests with some conditionals to handle page redirections and safe resources like 404 * Avoid CircleCI to only test production runtime to check CI behavior * Adding rest of tests to run * Adding CircleCI configuration separate * Fixing for offline plugin so far * Fixing tests for offline flag * Adding location and should back dynamic depending on blocked paths * Adding helper function to assert on visit with click on an element being optional * Bringing back Circle CI full configuration * we don't want to assert broken behavior - we want to assert correct one, that just means we need to fix runtime * wip fixes for runtime * ugh circleCi - please run tests * dummy change * skip failing unit tests (for now) * Revert "skip failing unit tests (for now)" This reverts commit 892a378ad4f9125b4b7e0d1936ae06e79b3ad0d1. * - make page resource status an "enum" - get rid of "failure" status (it's not clear what's the difference between failure and error) - skip some tests (they seem to enter infinite recursion and causing OOM - need to investigate) Co-authored-by: Blaine Kasten <blainekasten@gmail.com> * restore error, don't fall into infinite recursion, fix unit tests * fixup 404 loadPage unit test * check if ___chunkMapping has componentChunkName * remove some debug console.logs and add more detailed comments * uncomment hovering * remove console.log * Update packages/gatsby/cache-dir/__tests__/loader.js Co-Authored-By: Ward Peeters <ward@coding-tech.com> Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com> Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com> Co-authored-by: Blaine Kasten <blainekasten@gmail.com> Co-authored-by: Ward Peeters <ward@coding-tech.com>

view details

Jarmo Isotalo

commit sha d9b8fe8027ad991c7a25426fcda031c80830d353

perf(gatsby-telemetry): Memoize the getRepositoryId (#20472) * Memoize the getRepositoryId * chore: format * make use of memoized function Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com> Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>

view details

Andriy Shabat

commit sha 60e3a16e2f33679867a7be3b03e054e137e28e17

Add build_by param to Softblues (#22200) Add build_by param to Softblues site in showcase

view details

Vishal Jagtap

commit sha 2a7cb8c10dff4f847ca8e13db2486ad877c80dfb

Updated the ReactJS Home URL (#22195) * Updated ReactJS links in Blogs * DOC: Updated ReactJS links * Updated ReactJS links in packages README

view details

Michal Piechowiak

commit sha 8bdcb5ad52b898e99584bb3a0a41baec5fcccc28

chore(release): Publish - gatsby-cli@2.10.9 - gatsby-plugin-glamor@2.1.22 - gatsby-plugin-mdx@1.0.82 - gatsby-plugin-sharp@2.4.12 - gatsby-remark-prismjs@3.3.34 - gatsby-source-contentful@2.1.96 - gatsby-source-drupal@3.3.25 - gatsby-source-filesystem@2.1.54 - gatsby-source-shopify@3.0.49 - gatsby-source-wordpress@3.1.69 - gatsby-telemetry@1.1.55 - gatsby-theme-blog-core@1.2.24 - gatsby-theme-blog@1.3.25 - gatsby-theme-notes@1.1.22 - gatsby-theme@0.0.10 - gatsby-transformer-sqip@2.1.72 - gatsby@2.19.41

view details

Khaled Garbaya

commit sha 4e97b1542fc336dbd3fee6df11252882e986ddb7

Update awesome-gatsby-resources.md (#21877)

view details

Yuki Takemoto

commit sha 9645eebd6ace41a962ab6af04370616f6c2b3a7b

docs(gatsby): Fix broken links (#22202)

view details

push time in 2 months

PR opened gatsbyjs/gatsby

add generic state to router location

Description

This allows to type location state using and additional TypeScript prop.

Documentation

Example:

interface LocationState {
  // data sent from previous page using <Link to="/page" state={{foo: "OK"}} />
  foo: string
}

const MyPage: React.FC<PageProps<null, null, LocationState>> = ({ location }) => {
  // location.state.foo is recognized as a string
  return <div>Test: {location.state?.foo}</div>
}

Related Issues

Fixes #23298.

+3 -2

0 comment

2 changed files

pr created time in 2 months

create barnchantoinerousseau/gatsby

branch : generic-state-location

created branch time in 2 months

starteddenoland/deno

started time in 2 months

issue commentjsoendermann/rn-section-list-get-item-layout

Typescript error

Hi guys, I went ahead and opened PR #16 for this 🎉

ping @RaphaelPI

mbrimmer83

comment created time in 2 months

push eventantoinerousseau/rn-section-list-get-item-layout

Antoine Rousseau

commit sha a20b8a3784f610a505a0fd3cd8704c3d6dfd575b

update to new RN types

view details

push time in 2 months

issue commentjdan/98.css

License

Yes sorry I edited my comment, my bad!

antoinerousseau

comment created time in 2 months

issue commentjdan/98.css

License

Please update or remove the LICENSE file then. And thanks for sharing! :)

antoinerousseau

comment created time in 2 months

issue openedjdan/98.css

License

The license content suggests a copyright, but the repo license is MIT.

https://github.com/jdan/98.css/blob/master/LICENSE

What's the license in the end?

created time in 2 months

startedphuoc-ng/1loc

started time in 2 months

startedjsoendermann/rn-section-list-get-item-layout

started time in 2 months

startedcss-system/css-system

started time in 2 months

startedmyagoo/amstangram

started time in 2 months

issue commentbrysgo/babel-plugin-inline-dotenv

Notice that this won't work with babel-loader cacheDirectory

could the babel-loader caching be disabled by this plugin?

einarlove

comment created time in 2 months

issue closedbrysgo/babel-plugin-inline-dotenv

weird issue

I'm using this plugin for my typescript lambda functions. So, in my functions folder, I have a .babelrc with:

{
  "presets": [
    "@babel/preset-typescript",
    [
      "@babel/preset-env",
      {
        "targets": {
          "node": "10.19"
        }
      }
    ]
  ],
  "plugins": [
    "inline-dotenv",
    "@babel/plugin-proposal-class-properties",
    "@babel/plugin-transform-object-assign",
    "@babel/plugin-proposal-object-rest-spread"
  ]
}

And I have a .env in the root folder (from where the lambda is started, using netlify-lambda serve src/functions)

But in my TS lambda file, my process.env.SOME_VAR variables don't get properly replaced, instead they get process && process.env && process.env.SOME_VAR || undefined. But if somewhere I add a console.log(process.env.SOME_VAR), it fixes them all! It also fixes the issue if I replace "inline-dotenv" with ["inline-dotenv", {}] in .babelrc... Note that BABEL_DISABLE_CACHE=1 does not help.

closed time in 2 months

antoinerousseau

issue commentbrysgo/babel-plugin-inline-dotenv

weird issue

Ok I had to clear babel's cache as per https://github.com/brysgo/babel-plugin-inline-dotenv/issues/7#issuecomment-343300281 :/

antoinerousseau

comment created time in 2 months

issue openedbrysgo/babel-plugin-inline-dotenv

weird issue

I'm using this plugin for my typescript lambda functions. So, in my functions folder, I have a .babelrc with:

{
  "presets": [
    "@babel/preset-typescript",
    [
      "@babel/preset-env",
      {
        "targets": {
          "node": "10.19"
        }
      }
    ]
  ],
  "plugins": [
    "inline-dotenv",
    "@babel/plugin-proposal-class-properties",
    "@babel/plugin-transform-object-assign",
    "@babel/plugin-proposal-object-rest-spread"
  ]
}

And I have a .env in the root folder (from where the lambda is started, using netlify-lambda serve src/functions)

But in my TS lambda file, my process.env.SOME_VAR variables don't get properly replaced, instead they get process && process.env && process.env.SOME_VAR || undefined. But if somewhere I add a console.log(process.env.SOME_VAR), it fixes them all! It also fixes the issue if I replace "inline-dotenv" with ["inline-dotenv", {}] in .babelrc... Note that BABEL_DISABLE_CACHE=1 does not help.

created time in 2 months

startedgcanti/io-ts

started time in 2 months

startedantoinerousseau/gatsby-presentation

started time in 2 months

startedclaudiodangelis/qrcp

started time in 3 months

issue commentokonet/lint-staged

lint-staged ignores tsconfig.json when it called through husky hooks

It's because you get the filenames passed as an argument. Try using the function syntax. This is what I use:

// lint-staged.config.js
module.exports = {
  "*.{js,jsx}": [
    "eslint --cache --fix",
  ],
  "*.{ts,tsx}": [
    () => "tsc --skipLibCheck --noEmit", 
    "eslint --cache --fix",
  ],
}
SerkanSipahi

comment created time in 3 months

issue commentfacebook/react-native

Fetch API returns Network request failed on some websites.

Well it's just B-graded, is that so bad? https://www.ssllabs.com/ssltest/analyze.html?d=www.mocky.io

crimson-med

comment created time in 3 months

pull request commentarchriss/react-native-render-html

feat: add typescript typings

Could we get this beautiful PR merged? @Exilz

jsamr

comment created time in 3 months

issue commentfacebook/react-native

React Native 0.62.* [TypeError: Network request failed] on file upload

@aprilmintacpineda I posted in https://github.com/facebook/react-native/issues/26939 instead, seems more related, and I'm not sure if it's Flipper related?

abumostafa

comment created time in 3 months

issue commentfacebook/react-native

Fetch API returns Network request failed on some websites.

I tried to apply https://github.com/facebook/flipper/issues/993#issuecomment-619823916 but I'm still getting the same Network request failed with that new Flipper 0.39.0 when trying to fetch("https://www.mocky.io/v2/5185415ba171ea3a00704eed"), even though it works in Chrome/Firefox/Safari.

crimson-med

comment created time in 3 months

issue commentfacebook/react-native

React Native 0.62.* [TypeError: Network request failed] on file upload

Still getting a Network request failed with that new Flipper 0.39.0 when trying to fetch("https://www.mocky.io/v2/5185415ba171ea3a00704eed"), even though it works in Chrome/Firefox/Safari.

abumostafa

comment created time in 3 months

startedtypicode/husky

started time in 3 months

push eventantoinerousseau/gatsby-starter-antoine

Antoine Rousseau

commit sha 2206ae7b30ac28fd29e43a59743b9e68da9b0e27

onRenderBody + package infos

view details

push time in 3 months

startedth3rdwave/react-native-safe-area-context

started time in 3 months

startedchristopherdro/react-native-html-to-pdf

started time in 3 months

issue commentfacebook/react-native

React Native 0.62.* [TypeError: Network request failed] on file upload

Update, after doing some tests, we came to the conclusion that it's due to failing SSL certificates. We don't know what's wrong with these, but the issue also happens in Postman with the "SSL certificate verification" option enabled. Could it be that the certificate authority is not in the phone's list?

abumostafa

comment created time in 3 months

issue commentfacebook/react-native

Fetch API returns Network request failed on some websites.

Update, after doing some tests, we came to the conclusion that it's due to failing SSL certificates. We don't know what's wrong with these, but the issue also happens in Postman with the "SSL certificate verification" option enabled. Could it be that the certificate authority is not in the phone's list?

crimson-med

comment created time in 3 months

issue commentdderevjanik/github-vscode-icons

Extension not work

Yes I confirm it's a race condition, it happens randomly on first load or on reloading/force reloading

fakhamatia

comment created time in 3 months

issue commentdderevjanik/github-vscode-icons

Extension not work

I'm using an up to date version of the extension and I'm having this issue too, did it break again?

fakhamatia

comment created time in 3 months

issue commentfacebook/react-native

React Native 0.62.* [TypeError: Network request failed] on file upload

Same here, for example trying to fetch("https://www.mocky.io/v2/5185415ba171ea3a00704eed") raises a TypeError: Network request failed. It happens in Android only, both in debug and release, and both with remote debugging and without. Adding android:usesCleartextTraffic="true" didn't help (but it's for non-SSL requests anyway). Using RN 0.62.2.

abumostafa

comment created time in 3 months

issue commentfacebook/react-native

Fetch API returns Network request failed on some websites.

Same here, in Android only (both debug and release), for example trying to fetch("https://www.mocky.io/v2/5185415ba171ea3a00704eed") raises a NetworkError.

crimson-med

comment created time in 3 months

more