question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clarify documentation for reducing redux-form size

See original GitHub issue

Hi,

I’m trying the new recommended way to shrink redux form 6.7.0 size according to the documentation.

It works except for actions. It complains that there is no default export.

334:22-29 "export 'default' (imported as 'actions') was not found in 'redux-form/es/actions'

I’m using the babel plugin.

Thanks !

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
avocadowastakencommented, May 10, 2017

Also you should be able to import like that:

import { change, destroy } from 'redux-form/es/actions';

But I’m not sure how plugin will handle it, I’m using webpack 2 and it’s doing tree shaking without issues.

1reaction
moimaelcommented, May 10, 2017

Yes that makes a lot more sense, thank you 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to reduce `redux-form`'s bundle size?
You are looking at the documentation for version v7.3.0. The latest is v8.3.9. Go To Latest. I know. Don't remind me for 7...
Read more >
How to clear some fields in form - Redux-Form - Stack Overflow
I'm working on a page which has many input validations and logical bindings on it and every sprint iteration the page size increasing....
Read more >
React v16.13.0 - Field validation is triggering a "Warning ...
Go to https://codesandbox.io/s/redux-form-simple-example-nn8nv ... Note it doesn't "revert this warning", it only reduces the cases in which ...
Read more >
Understanding Redux: The World's Easiest Guide to ...
Reduce? Yeah, that's what I thought. It sounds like reduce. Well, according to the Redux official docs: Reducers are the most important ...
Read more >
Philosophy - Final Form Docs
As Redux Form grew in popularity (and bundle size), I received a lot of ... In this talk, I explain the journey through...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found