Coder Social home page Coder Social logo

react-odata's People

Contributors

techniq 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

Watchers

 avatar  avatar  avatar

react-odata's Issues

Batch Request for long filter queries

My filter query is getting too long in the url and throwing an error. How can I use batch processing in the current format? Are there other ways to get around?

Any examples would help.

Simple sample?

I'm trying to construct the simplest of samples just to see if I can use react-odata in my app. For some reason the list doesn't get built. The odata service is working, I can get data by entering the url in the browser and it's working in other apps I've made in ionic and other frameworks.

import React, { Component } from 'react';
import {
   Text,
   View,
   ScrollView
} from 'react-native';
import { List, ListItem } from 'react-native-elements';
import OData from 'react-odata';const baseUrl = 'http://ODATAURL/odata/Products';
const query = false;
<OData baseUrl={baseUrl} query={query}>
    {({ loading, error, data }) => (
        <View style={{ height: 400 }}>
            <Text>HI THERE!</Text>
            {loading && <Text>Loading...</Text>}
            {error && <Text>error...</Text>}
            {data &&
                <List>
                    {data.map((product) => (
                        <ListItem
                            key={product.ProductId}
                            title={`${product.ItemCode}`}
                        />
                    ))}
                </List>
            }
            </View>
        )}
</OData>

I see the text that says HI THERE. But nothing else. I even tried putting in some sample list items but they didn't show up either. Can somebody help out with this? Is this the right way to handle the return data? Would is be possible for someone to add an example to the repo?

Thanks,
Mike

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.