Giter Site home page Giter Site logo

easybase / easybase-react Goto Github PK

View Code? Open in Web Editor NEW
74.0 74.0 42.0 11.03 MB

๐Ÿ“ก Serverless database integration for React and React Native with Easybase.

Home Page: https://easybase.io

License: MIT License

HTML 0.81% TypeScript 82.20% CSS 1.37% JavaScript 7.53% Starlark 0.95% Java 4.30% Ruby 0.32% Objective-C 2.52%
easybase node nodejs react react-native reactjs serverless

easybase-react's People

Contributors

dilan-dio4 avatar easybase avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

easybase-react's Issues

Error with object-observer

is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules. Instead rename object-observer.min.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from
I am using nextron (nextjs + react). Any ideas?

Project reading in dev

I'm new to javascript and easybase, and I'm implementing a project using several tables and users. I can write to a table using addRecord or Frame().push but then always get back an empty Frame or a frame with just the newest element respectively. The table has read/write permissions for the user in the project settings, so it seems like writing works fine but reading does not. I'm working in dev on localhost and I'm wondering if this is because there's an option to make an integration "testing mode enabled" for a table but not for the whole project. Any ideas for how to work with or around this? Thanks.

Specifics:

My table "FEELINGS" currently has many rows and appears on https://app.easybase.io/#/tables as such. My constant row is a Record which contains a key-value pair location: "beginning". This code is within an async function called when a user clicks "save", and the user is signed in:

configureFrame( {tableName: "FEELINGS"} )
await sync()
await addRecord({
            insertAtEnd: true,
            newRecord: row,
            tableName: "FEELINGS"
        })
await sync()
console.log(Frame().map(e => e.location))

The log is Frame: [].

If I replace the code as such:

configureFrame( {tableName: "FEELINGS"} )
await sync()
Frame().push(row)
await sync()
console.log(Frame().map(e => e.location))

The log is Frame: ["beginning"], so it now contains the pushed item but not any others.

Expired refresh token

My application return below error when I'm not signin, how can I fix this issue?
Thanks in advance.

  210 | 
  211 | const fallbackMount = setTimeout(() => { setMounted(true) }, 2500);
  212 | 
> 213 | const [refreshTokenRes, { hash }, { fromUtf8 }] = await Promise.all([
      | ^  214 |     tokenPost(POST_TYPES.REQUEST_TOKEN, {
  215 |         refreshToken: g.refreshToken,
  216 |         token: g.token,

Window undefined error

I am using the razzlejs framework and I started getting a "window undefined" error in the cache.ts file. I was able to get rid of it by changing the following, beginning on line 3 of /src/cache.ts:

I changed this:

     const storage = new Storage({ storageBackend: window.localStorage });

To this:

     const storage = () => {
           if(typeof window !== undefined){
                 return new Storage({storageBackend: window.localStorage});
            }
       }

It's been working perfectly with testing after this change, so I thought I'd pass it along. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.