Skip to content

Commit

Permalink
Use strings in place of Symbols [major]
Browse files Browse the repository at this point in the history
To fix problem where Symbols are different between an app and a library which requires a different version of react-async-ssr + ensure works in old browsers with no Symbol support.
  • Loading branch information
overlookmotel committed Nov 27, 2019
1 parent 0ea20cc commit 9e358d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/symbols.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

// Exports
module.exports = {
NO_SSR: Symbol('react-async-ssr/symbols.NO_SSR'),
ABORT: Symbol('react-async-ssr/symbols.ABORT'),
ON_MOUNT: Symbol('react-async-ssr/symbols.ON_MOUNT')
NO_SSR: '$_react-async-ssr/symbols.NO_SSR',
ABORT: '$_react-async-ssr/symbols.ABORT',
ON_MOUNT: '$_react-async-ssr/symbols.ON_MOUNT'
};

0 comments on commit 9e358d9

Please sign in to comment.