Using promise.prototype.finally with ReactReduxTemplate #918

Closed
opened 2025-08-09 17:18:10 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @DanHarman on 3/21/2017

Has anyone worked out how to use this polyfill with the template?

I've pulled in the package and the typings in packages.json & made an entry in webpack.config.js, but the polyfill seems to require the following code at a sensible entry point in the code:

import { shim } from 'promise.prototype.finally';
shim();

I've tried putting this in both boot-client.tsx & boot-server.tsx but it blows up the latter breaking the server side rendering.

*Originally created by @DanHarman on 3/21/2017* Has anyone worked out how to use this polyfill with the template? I've pulled in the package and the typings in `packages.json` & made an entry in `webpack.config.js`, but the polyfill seems to require the following code at a sensible entry point in the code: ``` import { shim } from 'promise.prototype.finally'; shim(); ``` I've tried putting this in both `boot-client.tsx` & `boot-server.tsx` but it blows up the latter breaking the server side rendering.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#918
No description provided.