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.

Allow import/export

See original GitHub issue

I`m searching for a way to use ketting with a state management like mobx or redux without saving a complete ketting class in state?

To realize it, I need to get the response body oder something similar out of ketting and later import it to ketting, when I want to follow a link of a resource.

Example:

  • get resource from server with ketting and export it
  • save it in mobx or redux store and use it in the view
  • a user trigges an action
  • action handler uses ketting to import an object from the store (which contains links) to follow and open a link

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
evertcommented, Apr 14, 2020

Take a look at #190

0reactions
evertcommented, Feb 27, 2020

I think you’ll just kind of end up fighting the library too much to achieve this, but the best I can tell you is to pass the ‘representation’ object around, not the resource.

For what it’s worth, we do pass resources around to our React components. Our API layer is mostly just responsible for finding the ketting resources and returning them, and it’s a very thin layer.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Importing and Exporting | USAGov
Some types of goods and services require a license or permit to import into the U.S. as a part of your business.
Read more >
Export and Import
Export and import directives have several syntax variants. In the previous article we saw a simple use, now let's explore more examples.
Read more >
import - JavaScript - MDN Web Docs - Mozilla
Name of the exports to be imported. The name can be either an identifier or a string literal, depending on what module-name declares...
Read more >
Basic Importing and Exporting
Both CBP and the importing/exporting community have a shared responsibility to maximize compliance with laws and regulations. In carrying out this task, ...
Read more >
Import/Export Permit Applications and Declarations
DEA Form 161 - Application for Permit to Export Controlled Substances DEA Form 236 - Controlled Substances Import/Export Declaration
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