Comments (6)
@g3ortega on the subject of loading time: Gatsby offers caching for created nodes but we would have to change the id passed to the createNodeId function in the DocumentManager to use the metadata id from Paper in order to cache the rest of the document (but this would substantially speed up the API because the metadata call is quite fast). I have tested this locally, caching the last_updated_date and the metadata id in order to preserve the existing Gatsby node unless the current last_updated_date differs from the one in Gatsby’s cache.
If @alexmcarthur is open to it, I’m happy to put the PR with that code up here.
from gatsby-source-dropbox-paper.
@jamessimone Please do! Curious about the node caching you're talking about. I'm not to that level of familiarity with Gatsby's API to make that happen.
from gatsby-source-dropbox-paper.
I've been looking for a way to get docs by folder and it seems they don't support it (at least in the current version of the API). Is there a way to filter by hashtag? If so, I can help with that.
One of the problems I have right now is the time it takes to load all the documents, hopefully they improve the API soon.
from gatsby-source-dropbox-paper.
@alexmacarthur just opened #8 for that!
from gatsby-source-dropbox-paper.
@jamessimone, just curious, how is handled the expiration in that case? can we set the expiration time or something like that?
from gatsby-source-dropbox-paper.
@g3ortega I am not sure of Gatsby’s internal expiration handling of the .cache folder; if any, but my guess is that all caching between builds that isn’t explicitly set using this paradigm (which in the case of Dropbox paper would be based off of the last modified date for each individual doc) just gets rebuilt into that folder
from gatsby-source-dropbox-paper.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-source-dropbox-paper.