Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Disable import while maintaining export #6

Open
AshotN opened this issue Jun 2, 2022 · 3 comments
Open

Disable import while maintaining export #6

AshotN opened this issue Jun 2, 2022 · 3 comments

Comments

@AshotN
Copy link

AshotN commented Jun 2, 2022

Is it possible currently to disable the import function while keeping the export?

@qradle
Copy link

qradle commented Aug 3, 2022

I fixed that with following:

features: [
  importExportFeature(),
  ({ actions }) => {
    delete actions.import;
    return { actions };
  },
],

@AshotN
Copy link
Author

AshotN commented Aug 24, 2022

That's pretty smart. It doesn't cause any issues?

@Upasana-Jha
Copy link

You could also do

features: [
  importExportFeature(),
],
options: {
      actions: {
          import: { isAccessible: false }
      }
}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants